What do you want to save?
Add Code snippet
New code examples
-
Shell/Bash 2021-10-07 02:15:04
new repository github used
$ git init $ git add . # Adds the files in the local repository and stages them for commit. To unstage a file, use 'git reset HEAD YOUR-FILE'. $ git commit -m "First commit" # Commits the tracked changes and prepares them to be pushed to a rem... Add solution -
Shell/Bash 2021-10-03 05:01:07
delete remote branch
$ git push origin --delete feature/login Add solution -
Shell/Bash 2021-10-01 19:04:06
push a branch with diffrent name
git push origin local-name:remote-name Add solution -
Shell/Bash 2021-09-30 16:45:05
git sync branch from 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 -
Shell/Bash 2021-09-30 15:41:05
git remote push
git remote add origin <repository url> # adds a repo to your project git remote # lists all the repos of your project git config --get remote.origin.url # prints the url of a repo git push origin master # updates the master branch of yo... Add solution