Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

git initial commit steps

# 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 youruser@yourserver.com:/path/to/my_project.git
git push origin master
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #git #initial #commit #steps
ADD COMMENT
Topic
Name
1+3 =