-
Notifications
You must be signed in to change notification settings - Fork 0
git
arvin karimi edited this page Apr 5, 2018
·
1 revision
git remote set-url origin --push --add <a remote>
git remote set-url origin repo_url
git remote -v
git branch -r | grep -v '\->' | while read remote; do git branch --track "${remote#origin/}" "$remote"; done
__
git reset --soft HEAD^
git stash
git reset --soft HEAD^
git stash
git pull
git stash pop # Will cause a conflict
git commit # Re-commit 7826b2
git reset --hard HEAD^
git pull
git cherry-pick 7826b2 # Will cause a conflict