
We’re excited to hear your project.
Let’s collaborate!
Git is one of the most popular version control systems in the world. Since its release more than 11 years ago it became a must have for web development specialists and web development agencies alike. Here is a list of very handy Git commands which you can use for app development or web development:
git config --global user.name "John Doe" git config --global user.email john@example.com Use --global to set the configuration for all projects. If git config is used without --global and run inside a project directory, the settings are set for the specific project.
cd project/ git config core.filemode false This option is useful if the file permissions are not important to us, for example when we are on Windows.
git config –list
git clone https://github.com/username/somerepo.git This creates a new directory with the name of the repository.
git help clone
git checkout -b
git checkout -b origin/
git diff COMMIT1_ID COMMIT2_ID
git log
git checkout --
git commit --amend
git add --edit
git revert HEAD^
# After changes have been made... git stash # Do some other things here #Re-apply the changes git stash pop
git push origin :
# Add a remote branch git remote add # Get changes from that branch git fetch
# Create a Tag git tag # Delete the tag git tag -d # Push Tags git push --tags
git diff > some_patch_1.patch
git add newfile git diff --staged > some_patch.patch
git apply -v some_patch_2.patch
We’re excited to hear your project.
Let’s collaborate!