Wednesday, November 26, 2014

Learn basics about Git during software development 2014-11-26

Today, I learned about Git.

    Many of us have heard about github and bitbucket  where people can upload (in general term) their code/ projects online. It is one of the part of Git .



Let me go in detail about detail that I have learn today about git are:

- Its saves your project changes and can reverse changes in the project.
- It checks every changes in the code i.e lines of codes also .
- Until you commit the changes , you can reverse the changes to the last               commited point.
- Multiple users can work on same project and can see the changes done by other person.
-For more information you can goto : bitbucket 



I just used Git in ubuntu 14.04 so I can tell you how to install and use Git in ubuntu .

1. open terminal and type : sudo apt-get install git
2.  type : cd <project folder path>
3. type :  git init

now you will see : Initialized empty Git repository in <project folder path>
Then your git has been initialized in the project path folder .




Now, you have to add the files/ folders which u want to be monitored by Git .
For that follow the following steps:
1. open terminal and type: cd <project folder path>
2. For adding the folders you can do like :
     For adding specific folder in git, type : git add <folder path>
     For checking commiting the changes and newly added folders in git , type :  
git commit <folder name> -m "<message for changes>"
     then follow the commands to make the changes comitted .


From this process you can reverse the changes through git until you get commited . For example : you want to add a new feature in your app but somehow you cannot add up that feature  and you have already saved  your source code and cannot undo it . Then, there git is most helpful .

For online uploading and downloading the code/ projects you can search in Web about push and pull , origin and remort command in git if you are doing a project in group . This only can explains 2 - 5 % facilities of Git . Hope you will create an account on github and bitbucket.
From  bitbucket site you will get notified about how to use Git in parallel software development process using branch system , version control and many more .
You can make account in bitbucket for free for 1 to 5 users . I just learn it today  and wanted to share about it . It may not be that good but you can got those websites and get full details about using git :) 

No comments:

Post a Comment