Let’s understand Git Submodule

What is git submodule? It is another git project inside your git repository. If you working on multiple git projects but need them in one repository instead. You will be happy to setup git submodule. So here I have two git repositories for example: https://github.com/muffat/repo-a https://github.com/muffat/repo-b And since I’m updating the repo-b frequently, I want … Read more

How to move your old repo to github

Before you begin, you might want to add your ssh key into your github account. // push master branch $ cd /repo-directory $ git remote rename origin bitbucket $ git remote add origin https://github.com/username/awesome-new-repo.git $ git push origin master $ git remote rm bitbucket // push another branch $ git checkout develop $ git push … Read more

Arcanist cheatsheet

$ arc patch D123 $ git add . $ git commit -am “update” $ arc diff –update D123 $ arc land –revision D123 Update diff to master $ git checkout master $ git merge arcpatch-D123 $ git push Make a diff from current working branch $ git add. $ git commit -am “update” $ arc … Read more

Git cheatsheet

Ignore permissions git config core.fileMode false list branch git branch rename branch git branch -m <newname> move to another branch git checkout your-branch hard reset branch git reset –hard origin/master create new branch git checkout -b new-branch delete local branch git branch -D your-branch merge from develop to master git merge develop init on existed … Read more