What do you want to save?
Add Code snippet
New code examples
-
-
Shell/Bash 2021-09-01 06:23:02
reset one branch onto another
# Make sure your working tree is in a clean state git status # Check out the branch you want to change, e.g. some-branch git checkout some-branch # Reset that branch to some other branch/commit, e.g. target-branch git reset --hard target-branch Add solution -
Shell/Bash 2021-09-01 05:53:03
how to fetch upstream changes gitlab fork
# Git CLI # Add a secondary remote called upstream. git remote add upstream https://... # Fetch the remote and then pull its changes into your local master branch. git checkout master git fetch upstream git pull upstream master # Last, push to your o... Add solution -
Shell/Bash 2021-08-31 21:07:01
git rebase fork
## Add Original Repository git remote add upstream https://github.com/OriginalOwner/OriginalProject.git ## Verify if Repository is added git remote -v ## Fetch Updates from Original Repository git fetch upstream ## Checkout to your master branch git ch... Add solution -
Shell/Bash 2021-08-31 19:54:02
git sync branch with master
git checkout master git pull git checkout mybranch git merge master # to keep mybranch in sync with master # then when you're ready to put mobiledevicesupport into master, first merge in master like above, then ... git checkout master git merge mybran... Add solution