What do you want to save?
Add Code snippet
New code examples
-
Shell/Bash 2022-03-27 16:15:34
configurer kdiff3
git config --global merge.tool kdiff3 git config --global mergetool.kdiff3.path "C:/Program Files/KDiff3/kdiff3.exe" git config --global mergetool.kdiff3.trustExitCode false git config --global diff.guitool kdiff3 git config --global difftool.k... Add solution -
Shell/Bash 2022-03-20 04:25:13
git push to all remotes
#To push all branches to all remotes: git remote | xargs -L1 git push --all #Or if you want to push a specific branch to all remotes: #Replace master with the branch you want to push. git remote | xargs -L1 -I R git push R master #(Bonus) To make a git ... Add solution -
Shell/Bash 2022-03-19 14:55:02
push project to gitlab account
# First remove any existing hidden git folder in your project folder # Initialize project in your folder git init # add your gitlab project as your remote origin git remote add origin https://gitlab.com/your_account_name/project_name.git # add all files i... 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 23:55:22
git get repository url
git config --get remote.origin.url Add solution