22
loading...
This website collects cookies to deliver better user experience
git --version
Right Click
on it and click on Git Bash
. It will open your Git Bash on your system.git config --global user.name "Your name"
git config --global user.email "Your Email"
// You can check your credentials by:
git config user.name
git config user.email
index.html
file in it.git init
. This will initialize the hidden file in your folder. That will store all your changes in a file. git add -all <!-- To Stage -->
git commit -m "Your message" <!-- To Commit -->
git remote add origin *(paste that URL here)*
origin
as your shortcut for that URL.shift+insert
to paste and ctrl+enter
to copy.git push origin master
git pull URL master
// Paste copied link in URL
branch
.git checkout -b "Branch Name"
// At "Branch Name": You should give some descriptive names related to
//changes you are going to make in the branch.
git branch
// Branch with asterisk(*) will be your current branch
git checkout "branch name"
Git
and Stage
and Commit
changes as we have done in Part 1 👆.Push
the changes to github in branch
. using:git push URL branch name
// Branch Name: addcolor
Compare & Pull Request
Click on it.Create Pull Request
.merge pull request
.
As you are the author of the repo. So you are able to merge it. In practical life, while working in a group you should take clearance from your peers.git checkout -d addcolor
merged
your branch in master branch
.