Thursday, June 9, 2016

Git - Steps to commit a project

1. Show the status(how many new files, deleted files, modified files, etc.):
$ git status
2. Add all files to the project:
$ git add -A
the -A option means track all including deleted files.

3. Commit:
$ git commit -m "[Comments]"
the -m option gives you the possibility to add your comments in the same line.

4. Push:
$ git push -u origin master
The -u is optional and what it does is sets your local repo to a central one in order to, in the next time, git knows where to push and pull from.

For basic snapshotting see:
http://gitref.org/basic/

0 comments:

Post a Comment

Popular Posts

Recent Posts

Unordered List

Text Widget

Pages

Search This Blog

Powered by Blogger.