Git Status, Git Commit, Git Add


To Edit File in Git

GitAddChange
cd to directory: vi views/index.jade (File Name)
Edit the file in VI Editor and save :qw!

To see Status: git status

# On branch master
# Changes to be committed:
# (use “git reset HEAD <file>…” to unstage)
#
# modified: views/index.jade
#

To Commit

git commit -m “change header text

[master 43185e0] change header text
1 file changed, 2 insertions(+), 2 deletions(-)

 

Advertisements

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s