Github is a code hosting platform for version control and collaboration. It lets you and other work together on projects from anywhwere. It manage changes to a project without overwriting any part of that project and keeps a snapshot of every change ever made.
Having an overview of github I set up my username and email address, as every Git commit uses this information using the following commands
$ git config --global username
$ git config --global user.email
Before moving ahead I went through some words that are used in Git repeatedly like Repository, Version Control, Commit, Branch,etc.
As a beginner without going into too deep, I started with the basic commands for getting started with Git.
To create new git Repository I used "git init" command.
Local repository consists of three trees maintained by git.
git commit -m "Commit message"
To push changes from HEAD to remote repository, I executed
git push origin master
After getting started I find it interesting, then i jumped to other commands
like:
git status
git log
git branch
git branch <filename>
git checkout <filename>
git merge <filename>
git branch -d <filename>
git log
git push
and many more.....
Practising these commands I am moving forward to get know more about Github through various tutorials and guides.
Having an overview of github I set up my username and email address, as every Git commit uses this information using the following commands
$ git config --global username
$ git config --global user.email
Before moving ahead I went through some words that are used in Git repeatedly like Repository, Version Control, Commit, Branch,etc.
As a beginner without going into too deep, I started with the basic commands for getting started with Git.
To create new git Repository I used "git init" command.
Local repository consists of three trees maintained by git.
Then I learned to add and commit using commands:
git add <filename>git commit -m "Commit message"
To push changes from HEAD to remote repository, I executed
git push origin master
After getting started I find it interesting, then i jumped to other commands
like:
git status
git log
git branch
git branch <filename>
git checkout <filename>
git merge <filename>
git branch -d <filename>
git log
git push
and many more.....
Practising these commands I am moving forward to get know more about Github through various tutorials and guides.
No comments:
Post a Comment