What do you want to save?
Add Code snippet
New code examples
-
Shell/Bash 2021-08-30 06:00:03
set up git repository
# New local repository git init git add . git commit -m "Initial commit" # New remote repository # Create remote repository (likely on github), then: git remote add origin https://github.com/username/new_repo #https git remote add origin git@gi... Add solution -
Shell/Bash 2021-08-29 19:28:02
github set branch upstream
git branch --set-upstream-to <remote-branch> // example git branch --set-upstream-to origin feature-branch // show up which remote branch a local branch is tracking git branch -vv // short version to set upstream with very first push git push -u ... Add solution -
Shell/Bash 2021-08-29 16:14:02
git shell
…or create a new repository on the command line git init git add . git commit -m "first commit" git remote add origin https://github.com/metinkaya1511/FinraDeck.git (GitHub’daki adres) git push -u origin master …push a... Add solution -
Shell/Bash 2021-08-29 01:55:02
rename branch to main
# Step 1 # create main branch locally, taking the history from master git branch -m master main # Step 2 # push the new local main branch to the remote repo (GitHub) git push -u origin main # Step 3 # switch the current HEAD to the main branch git sy... Add solution