mkdir %folder name%
cd %folder name%
git init
- Create GitHub repo
- Create ssh key on your machine
ssh keygen
- Add ssh key to GitHub
- Connect
git remote add origin git@github.com:%ИМЯ_АККАУНТА%/first-project.git
- create file
touch test.txt
echo "first line" > test.txt
- commit changes
git add .
git commit -m "my first commit"
- push to GitHub
git push -u origin master
- do changes in your file
echo 'second line' >> text.txt
- commit them
git add .
git commit -m "second commit. adjust file"
git push
git log
git log --oneline