2. whoami ??
Vikas S Yaligar
@vikasyaligar
https://github.com/vikassy
3. Why learn git??
To manage your Project repository
Sharing your code via github
Contributing to others code
4. Contents
➢ Git Introduction
➢ Git Basic Commands
➢ Git Branching & Merging
➢ Github Introduction
➢ Your app in Github
➢ How to Contribute?
5. Git Is
Open Source
Version control System
Tool for keeping
a history on the
Distributed Revision control state of your
source code
Source code management projects.
6. I'm an egotistical bastard,
and I name all my
projects after myself. First
'Linux', now 'git'
Linus Torvalds
7. Installation
On Linux
sudo apt-get install git
Version of git
Other systems git --version
http://git-scm.com/
9. Git Basic Commands
git init //initializes git
git status //prints status of current repo
git diff //prints difference made in files
git add filename //adds file name
git commit -m “Message here :P” //saved!!
git log //history
16. git commit
git commit -m “message here”
-m => message
git commit -am “message here:P”
-a => To add the modified files and then commit
Message is compulsory !!
17. git log
To show all commits with messages,check sum and
many more
Checksum is always unique to each commit
Can also use gitk, a commit viewer of git
27. Oh! I have to go back to last
commit !!!
How do I do that ???
28. git checkout checksum_number
You will have same status as that commit's data !!
Concept:
It goes to a no branch state, one can
make edits and also commit. But then you need to
create that into new branch
29. Status & Review
✔ Git Introduction
✔ Git Basic Commands
✔ Git Branching & Merging
➢ Github Introduction
➢ Your app in Github
➢ How to Contribute?
34. Git remote
A remote in Git is basically a way to tell Git where
another version of your repository is.
Then you can ask Git to fetch data from it that you
don’t have yet, or push your commits up to it (if you
have write access).
Git remote add origin https://github.com/username/project.git
41. There is a lot more to be learnt
Thank you !!
● Credits:
● 1)Chandramouli , 3rd year , BTech.
● 2)Tushar Makkar , 2nd year, BTech.
● 3)Pramati , 2nd year , BTech .