What do you want to save?
Add Code snippet
New code examples
-
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-16 08:35:03
add a file to git
/* go to the folder, open the terminal and type this commands */ git init git add . /* . => it is to add all the files */ git commit -m "first_commit" git remote add origin https://github.com/yourusername/your-repo-name.git... Add solution -
Shell/Bash 2022-01-23 05:46:29
git branch from commit
# Create a new branch from previous commit's hash git branch develop 04c900c # Push the new branch to remote repository git push --set-upstream origin develop # Checkout the new branch git checkout develop Add solution