git init
git add .
git commit -m "first commit"
git branch -M main
git remote add origin https://{website-of-repository}/{username}/{name-repository}.git
git push -u origin main
git add .
git commit -m "title of commit" -m "description od commit"
git push
- fork the repository you will pull request
- make the git clone on your machine
- after the changes give this command
git checkout -b branch-name
- branch-name -> put something that describes what you're working on
- if you want to go back to the master, execute this command
git checkout master
- now let's add all the changes we made with the -A flag
git add -A
- then just give a git commit
git commit -m "title of commit" -m "description od commit"
- And finally just push
git push --set-upstream origin nova-branch
Great!