GIT: How to push a file

GIT: How to push a file

Postby Antonio Linares » Mon Jul 13, 2015 7:49 am

git commit yourfile
git status
git push origin master
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42080
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: GIT: How to push a file

Postby Antonio Linares » Mon Jul 13, 2015 7:55 am

VIM quick guide to edit the commit comments:

In vim, you save a file with :wEnter while in the normal mode (you get to the normal mode by pressing Esc).

You close your file with :q while in the normal mode.

You can combine both these actions and do Esc:wqEnter to save the commit and quit vim.

As an alternate to the above, you can also press ZZ while in the normal mode, which will save the file and exit vim. This is also easier for some people as it's the same key pressed twice.
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42080
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: GIT: How to push a file

Postby Antonio Linares » Mon Jul 13, 2015 8:26 am

Properly setting the user id:

git config --global user.name "Antonio Linares"

git config --global user.email antonio.fivetech@gmail.com
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42080
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain


Return to Utilities / Utilidades

Who is online

Users browsing this forum: No registered users and 9 guests