Your SlideShare is downloading. ×
0
Github By Nyros Developer
Github By Nyros Developer
Github By Nyros Developer
Github By Nyros Developer
Github By Nyros Developer
Github By Nyros Developer
Github By Nyros Developer
Github By Nyros Developer
Github By Nyros Developer
Github By Nyros Developer
Github By Nyros Developer
Github By Nyros Developer
Github By Nyros Developer
Github By Nyros Developer
Github By Nyros Developer
Github By Nyros Developer
Github By Nyros Developer
Github By Nyros Developer
Github By Nyros Developer
Github By Nyros Developer
Github By Nyros Developer
Github By Nyros Developer
Github By Nyros Developer
Github By Nyros Developer
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Github By Nyros Developer

1,165

Published on

A popular distributed version control system designed to handle very large projects with speed and efficiency. …

A popular distributed version control system designed to handle very large projects with speed and efficiency.
http://git.or.cz/

Published in: Self Improvement, Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
1,165
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
7
Comments
0
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. GIT Global Information Tracking
  • 2. Contents
    • What is GIT?
    • Why GIT?
    • Normal Work flow?
    • Branching / Merging?
    • Why branching with GIT is awesome?
    • Local and Remote operations
    • Work flow with commands
    • Sample screens
  • 3. What is GIT?
    • A popular distributed version control system designed to handle very large projects with speed and efficiency.
    • http://git.or.cz/
  • 4. Why GIT?
    • • Open source
    • • Easy to use and share your code efficiently
    • • Extremely fast, even with large projects
    • • Unlimited Repositories
    • • Unlimited branches
    • • Community
  • 5.  
  • 6. Staging files
    • . git add [file names]
    • • add all changed files to the staging area:
    • git add .
    • • these changes are NOT committed yet
  • 7. GIT staging area
    • • git has a concept of a ‘staging area’
    • • you first stage all of the changes that you
    • are happy with
    • • then you can commit the changes using commit command
  • 8. Committing
    • git commit -m “commit message”
    • Here commit message is used to track the cause for modifications in future.
  • 9.
    • Branching / Merging
  • 10. Branching?
    • git branch
    • git branch [new branch name]
    • git checkout [new branch name]
  • 11. Merging?
    • git checkout [target branch]
    • git merge [other branch]
  • 12. Why branching and merging awesome?
    • Git will allow you to have multiple branches for each repository that can be entirely independent of each other and the creation, merging and deletion of those lines of development take seconds. Git makes this process incredibly easy and it changes the way most developers work when they learn it.
  • 13. Merging and Branching usage
    • $ git checkout -b test
    • $ git commit -am "Adding cutoff method to String"
    • $ git checkout master
    • Switched to branch "master"
    • $ git merge test
  • 14. Remote operations
    • git push [repository] [repository branch]
    • git pull [repository] [repository branch]
  • 15. Working with GIT?
    • First we have to create an account in http://www.github.com .
    • Login to github with your account details.
    • Create repository:
    • Goto Dashboard
    • New Repository
    • Give project name,description,homepageurl
    • Click on create repository.
  • 16.
    • To Manage(Add,Modify,Remove files) in repository we need to have private,public keys.
    • Now check the keys in your system.
    • Open Git Bash
    • Type cd ~/.ssh
    • If you get dir not found error then you have to generate the keys.
    • Type ssh-keygen -t rsa -C " [email_address] "
    • Now your public key has been saved in /home/venkat/.ssh/id_rsa.pub
  • 17.
    • Next steps
    • Global setup:
    • 1. Download and install Git software
    • 2. git config --global user.name "venkat"
    • 3. git config --global user.email venkat_nyros@yahoo.com
  • 18. Process
    • id_rsa is the private key and id_rsa_pub is the public key.
    • Goto Account settings -> SSH Public Keys -> Add another public key.
    • Enter title and key and press Add key.
    • Test whether it is correctly configured or not
    • $ ssh git@github.com
    • Hi venkatadapa! You've successfully authenticated ,
  • 19.
    • Local -> Remote Submition
    • mkdir Appname
    • cd Appname
    • git init
    • touch README
    • git add README
    • git commit -m 'first commit'
    • git remote add origin git@github.com:venkatadapa/Appname.git
    • git push origin master
  • 20.
    • git add .
    • git commit -m “full application submitted”
    • git push origin master
    • Now all files in your application was submitted to remote repository
  • 21. Remote -> Local -> Remote
    • Git clone gitrepo_url [local_dirname]
    • Cd local_dirname
    • Change some files and add new files
    • Git add [filesnames]
    • add the modified files to repository
    • Git commit -m “cause for modifications”
    • Git push origin master
  • 22. Tracking
    • Git –help
    • Git stash
    • No local changes to save
    • Git diff
    • will show you all modifications made on each file
    • Gti status
    • will show you any changes need to update into server
  • 23.
    • Git log
    • Will show you all commit messages and commiters
  • 24. GOOD LUCK

×