Skip to main content

Posts

Showing posts with the label Source control

Simple Git commands to getting started with Git

Git is an increasingly popular source control mechanism which most of the organizations are moving in to. With the extensive use of Git, sometimes developers need to learn git quickly. In this blog post, I will write about 10 of the most useful git commands to getting started with Git. git init - Initialize a local git repository git clone "repo_url" - Clone an existing git repository to your local machine git add -A dir_name - Add an entire directory with its files to your local git repository git pull - update your existing local repository with a remote repository git commit -m "comment" - Commit your local changes to your local git repository git push - Push your local changes to the remote git repository which you have cloned this repository from. Updating your own repository with changes committed to a remote(upstream) repository git remote add upstream "repo_url" - Add the upstream git fetch upstream - Fetch the changes ...