Links: the official site link Content table: Create a new repository on the command line Push existing repository from the command line .gitignore file #Create a new repository on the command line
1 2 3 4 5 6 |
echo "# js-template-engines" >> README.md git init git add README.md git commit -m "first commit" git remote add origin https://github.com/kselax/js-template-engines.git git push -u origin master |
#Push existing repository from the command line
1 2 |
git remote add origin https://github.com/kselax/js-template-engines.git git push -u origin master |
How to use git at fist do initialization
1 |
git init |
then…