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 -
Other 2022-03-19 11:35:22
save router config with ansible
---- hosts: router gather_facts: false vars: git_branch: /etc/ansible/playbooks/backuptasks:---- hosts: router gather_facts: false vars: git_branch: /etc/ansible/playbooks/backuptasks: - name: switch to target branch command: git checkout &q... 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
Best helpers
Ranking is empty