- Create a git repository on you r Github
- Go to your local machine create a local folder
- Enter the folder
- Then: " git init"
- touch README.md
- git add .
- git commit -m "messsage"
- git branch -M main ( Creating a default branch called main)
- git remote add origin (linking my git local repo with my github repo)
- git push -u origin main (Push my commit)
- git branch
- git checkout branch (switching into a new branch)
- git push -u origin push
- git branch -d (deleting branch locally)
- git pull (fetches a branch and merges it into your local file)
- git merge ( merges your file locally)