Answers for "create repo git cmd"

31

how to initialize a git repository command line

# New local repository
git init
git add .
git commit -m "Initial commit"

# New remote repository
git remote add origin [email protected]:username/new_repo #ssh
# Now push
git push -u origin master
Posted by: Guest on March-25-2020
1

how to connect to a git repo in cmd

git config --global user.name "your_username"
git config --global user.email "[email protected]"
# then try to clone a repo anywhere on your desktop
# This will trigger a username password prompt after which you are logged in
Posted by: Guest on August-27-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language