Start Git Repo

[Solved] Start Git Repo | Shell - Code Explorer | yomemimo.com
Question : set up git repository

Answered by : caleb-mcnevin

# 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 [email protected]:username/new_repo #ssh
# Now push
git push -u origin master

Source : https://kbroman.org/github_tutorial/pages/init.html | Last Update : Thu, 12 Mar 20

Question : upload new repo to git

Answered by : victorious-vendace-z52x6v7f7mwc

echo "# Can-I-Shop-2" >> README.md
git init
git add .
git commit -m "first commit"
git remote add origin https://github.com/username/projectname.git
git push -u origin master 

Source : | Last Update : Thu, 13 Aug 20

Question : how to initialize a git repository command line

Answered by : vivacious-vicua-vyolryov2xzg

# 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

Source : | Last Update : Wed, 01 Apr 20

Question : start new git repo from project

Answered by : loulou

git init
git add .
git commit -m "First commit"

Source : | Last Update : Thu, 04 Nov 21

Answers related to start git repo

Code Explorer Popular Question For Shell