- Start new project
git init
- Add README.md file
git add README.md
- First commit
git commit -m "first commit"
- Rename branch to master
git branch -M master
- Create the remote repository
git remote add origin [email protected]:brjatoba92/Git-Commands-Use-For-Build-Projects.git
- Send to GitHub
git push -u origin master
- All files
git add .
- One file
git add file
git commit -m "one commit"
- One specify branch
git push origin branch_name
- Branch master/main - not good practice
git push
git pull