-
Download git bash from here
-
Clone the repository
git clone https://github.com/hrdkmishra/grizla-website.git
-
Add your changes to the repository
git add "file name"
-
Commit your changes
git commit -m "your message"
-
Push your changes to the repository
git push
-
Keep your repository updated
git pull
-
Paste this in your git bash to generate ssh key
ssh-keygen -o -t rsa -C "your@email.com"
-
Then cat the public ssh key ,you can see the path while generating ssh key
cat file_path
-
Go to github setting -> goto SSH and GPG key -> add new SSH key -> give any title name and paste the public ssh key from step 2 -> Done
-
Clone the repository via SSH
git clone git@github.com:hrdkmishra/grizla-website.git
-
Create your specific branch
git branch -c your_name
-
Switch to your branch
git checkout your_name
-
Add your changes to the repository
git add "file name"
-
Commit your changes
git commit -m "your message"
-
Push your changes to your branch
git push origin HEAD
- Put comment on your code so that it is easy to understand
- You only need to perfom step 5 once
- to check in which branch you are currently
git branch
- dont push in the master branch