Git Clone and git push and pull concept — 17.03.2019
This is the concept we are using almost all the time with developers working in VCS. Let me share quickly concepts how to clone, pull in local repository and finally push in remote Github account.
Steps to follow:
- First clone the repository from github
- Go to the repository cloned and make some changes
- Push the changes back to the remote repository
- First clone the repository from github:
Go to your repository in github
→ Install git and make typing git should show description
→ Open terminal/command prompt type
Normally this is the same url of the browser with .git in the end. Now your git is cloned in the local
Now make some changes here.
→ To check changes staged or not
git add .
git commit -a -m “Your commit message‘
→ To check whether you are same member or not
git config — global user.email ‘email@example.com’
git config — global user.email ‘abc’
check whole lists here:
git config — list
→ You can check your committed logs here:
git commit log
git commit log -2 // last 2 logs
→ Finally pushing the changes: It may ask for credentials if not logged in