Answers for "git initial commit to remote repository"

3

git initial commit to remote repository

# On server:
mkdir my_project.git
cd my_project.git
git --bare init
# On client:
mkdir my_project
cd my_project
touch .gitignore
git init
git add .
git commit -m "Initial commit"
git remote add origin [email protected]:/path/to/my_project.git
git push origin master
Posted by: Guest on September-18-2021

Code answers related to "git initial commit to remote repository"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language