What do you want to save?
Add Code snippet
New code examples
-
Shell/Bash 2021-08-26 10:49:02
upload new repo to git
Open Terminal. Change the current working directory to your local project. Initialize the local directory as a Git repository. $ git init Add the files in your new local repository. This stages them for the first commit. $ git add . # Adds the files in th... Add solution -
-
-
Shell/Bash 2021-08-26 10:41:01
git to gethub after create repi
Open Terminal. Change the current working directory to your local project. Initialize the local directory as a Git repository. $ git init Add the files in your new local repository. This stages them for the first commit. $ git add . # Adds the files in th... Add solution -
Shell/Bash 2021-08-26 10:40:02
how to connect remote repo with local repo
git remote add origin <remote_repo_url> git push --all origin If you want to set all of your branches to automatically use this remote repo when you use git pull, add --set-upstream to the push: git push --all --set-upstream origin Add solution -
Shell/Bash 2021-08-25 14:44:43
connect to github repository from terminal
to connect your repository from your terminal to your github requires you 1) Create a github repository than 2) Open Terminal 3) You will initilize git and make a branch with: git init -b main 3) Followed by the command: git add . - this adds all your edi... Add solution