What do you want to save?
Add Code snippet
New code examples
-
Other 2022-03-27 16:50:43
how to switch to a master which is already added
git checkout master Add solution -
Shell/Bash 2022-03-16 14:10:08
cherry pick
#Checkout the branch you want to apply the commit to. git checkout master #Cherry pick using the commit hash. git cherry-pick <commit-hash> #If cherry picking from a public branch use "-x" to add a standardized commit message. git cherry... Add solution -
Shell/Bash 2022-02-13 08:25:03
git fix detached head
2388 Detached head means you are no longer on a branch, you have checked out a single commit in the history (in this case the commit previous to HEAD, i.e. HEAD^). If you want to delete your changes associated with the detached HEAD You only need to che... Add solution -
-
Shell/Bash 2021-11-15 23:15:14
update 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