What do you want to save?
Add Code snippet
New code examples
-
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-01-31 11:00:25
rename a branch alredy pushed
1. Verify the local branch has the correct name: git branch -a 2. Next, delete the branch with the old name on the remote repository: git push origin ––delete old-name 3. Finally, push the branch with the correct name, and reset the upstream... Add solution -
Shell/Bash 2021-11-12 13:12:10
Change a branch name in a Git repo
# Start by switching to the local branch which you want to rename: git checkout <old_name> # Rename the local branch by typing: git branch -m <new_name> # At this point, you have renamed the local branch. # If you’ve already pushed th... Add solution -
Shell/Bash 2021-11-09 19:00:11
git fetch vs pull
Git Fetch ==>The Git Fetch command downloads commits, files from a remote repository into your local repo. Fetching is what you do when you want to see what everybody else has been working on Git Pull ==> fetch and merge any commits from the rem... Add solution -
Shell/Bash 2021-11-09 13:03:08
difference git fetch vs pull
Git Fetch ==>The Git Fetch command downloads commits, files from a remote repository into your local repo. Fetching is what you do when you want to see what everybody else has been working on Git Pull ==> fetch and merge any commits from the rem... Add solution