Git add, commit, push, pull

If you make changes on your local repository you can add all your changes to your local history with

git add .

With the . you add all new files to the local history. With this command you commit everything to your local git repository.

git commit -m "new changes"

You can do multiple commit. If you feel you are done and everything is good enough to share it with your co-workers you can push all your commits to the server.

git push

If you want the updates from your co-workers you have to pull the changes.

git pull

Git pull is similar to svn update.

Published by Robert Reiz

CEO @ VersionEye. Passionated software developer since 1998.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

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

Facebook photo

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

Connecting to %s

%d bloggers like this: