Hi guys,
I saw some guys struggling to learn wat the heck is GIT & how it works.
First of all it is a version control like svn, but both are not same.
I will explain here with an example of parcel career :D
create an account on github and create new repository and name it, say "MyFirst"
Install GIT on ur machine.
Then you have to tell the installed git about ur identity, that is a one time job just like submitting your id proof to a service provider lol! (you can change it later if really needed to work with another account)
Name and email is enuf
now get into your project's directory
prepare your packets to parcel, that is add your files to push to repo
git add <files> NB: use * instead of <files> to add whole files & folders recursively
Now your parcel is well packed. Now tell your agent on wat to do ;)
that is to commit the files will make those added things ready to go
git commit -m 'this is the start-up commit'
Now the time to tell where to push these. It is also a one time process. (files will be pushed to the same address under the same directory until you opt to change it)
git remote add origin git@github.com:Nithin/MyFirst.git NB: here
git@github.com:Nithin/MyFirst.git is the location of our git repo, that you will get when u create it in github
Here we go, here comes the network activity, push to repository. this will add whole stuf to abov mentioned repo
git push origin master
origin is the remote repository & master is the main branch of remote repository
NB: guys feel free to convey If I made mistake in defining steps. will post how to use the existing repo in next lesson. Its already late and time for me to catch sleep.