Today I would like to share an easy git tutorial for all of you. We at XDA believe everyone loving Android and passionate about the same can contribute something or other to the community. Not everyone is an expert at everything like theming, bootanimations, building ROMs, Kernels etc etc. But git is an essential yet powerful tool in most aspects. This thread is for new users and old alike , wanting a correct direction of learning basic Android by starting with git. Okay enough of lectures? Bwahaha I know it's boring lol
So let's start
Gitlab? What exactly it is? How is it different from github?
GitLab is an application to code, test, and deploy code together. It provides Git repository management with fine grained access controls, code reviews, issue tracking, activity feeds, wikis, and continuous integration. Inshort and in simple english, it is a place to store all your sources, it maybe private, public or restricted.
Difference : GitHub is a publicly available, free service which requires all code (unless you have a paid account) be made open.GitHub currently hosts the source code for tens of thousands of open source projects. GitLab is a github like service that organizations can use to provide internal management of git repositories.
Signing up, Creating an account and setting up git
Go to gitlab web
You have an option to sign in with google, github, twitter or bitbucket. It's the easiest way. I prefer github
Now let's download the git package. I use Linux Mint 18 so,
sudo apt-get install git
Now let's configure the terminal
git config --global user.name "Your Name Here" git config --global user.email "[email protected]"
Now let's generate ssh keys
go to your terminal and type
ssh-keygen -t rsa -C "[email protected]"
cd .ssh cat id_rsa.pub
Now let's verify all that we've done so far.
git config --global --list
Now let's add ssh-keys we generated to our account at gitlabs OR we get this :P
Click : Add an ssh key and copy paste the ssh-key (id_rsa.pub) there and click okay.
Now let's check if everything works
ssh -T [email protected]
The authenticity of host 'github.com (220.127.116.11)' can't be established. # RSA key fingerprint is 16:27:ac:a5:76:28:2d:36:63:1b:56:4d:eb:df:a6:48. # Are you sure you want to continue connecting (yes/no)?
GIT 101, Tool/Utility for the Samsung Galaxy Chat
Vatsal, malybru, sawdoctor
Last Updated 2016-12-20
GIT 101 - Newbie Friendly, ROM for the Android General
ROM OS Version: 2.3.x Gingerbread
Last Updated 2018-04-25