Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- + multiple account git in multiple other repo
- - make new folder git init then setting "git config user.name alfatayah" and "git config user.email fadhil.alfatayah@gmail.com"
- - run this script git config --global credential.useHttpPath true
- - git clone or push in new repo dan akan muncul pop up login auth di git
- + reference : https://koukia.ca/how-to-remove-local-untracked-files-from-the-current-git-branch-571c6ce9b6b1
- + delete file untracked
- - git clean -f
- + delete directories untracked
- - git clean -fd
- + https://www.nobledesktop.com/learn/git/undo-changes
- + Reset all file change
- - git revert 2f5451f --no-edit (push)
- - git reset --soft HEAD~ (not push)
- + https://www.freecodecamp.org/news/how-to-delete-a-git-branch-both-locally-and-remotely/#:~:text=Deleting%20a%20branch%20LOCALLY&text=Delete%20a%20branch%20with%20git%20branch%20%2Dd%20.&text=The%20%2Dd%20option%20will%20delete,branch%20is%20now%20deleted%20locally.
- + Delete branch local
- - git branch -d <branch>.
- git remote url
- Add url
- + git remote add origin git@github.com:User/UserRepo.git
- Change URL
- + git remote set-url origin https://github.com/alfatmha/it-asset.git
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement