Java Scrap Book  

Java Scrap Book > Git Basic Tutorial

Git Basic Tutorial

you can find .git directory by $find -name *.git.
cd /.git directory/
Execute all the command at .git directory of project.

Q1. Edit a file and see it listed as changed file
A1. $ git status

Q2. See the line differences
A2. $ git diff

Q3. Stage the file
A3. $git add

Q4. Commit the files
A4. $git commit -m "your comment for Changes"

Q5. See it in the log
A5. $git log

Q6. Push the commit to the remote repo
A6. $git push


Reference:
Git Hub Cheat Sheet
Git Simple Guide

Copyright © 2013-2017

javascrapbook.com is a computer science content service should not be treated as the publisher or speaker of any information provided by another Computer Science content provider.

Contact email: help@javascrapbook.com