Friday, 19 June 2015

Lets 1st Introduction about git.



Lets talk about git. Git is not any technical stuff, it is just a flow that you can manage code or working style without conflicted with any file. If you are a Design and want your files keep maintain with previous changes. It’s a wise thing to use git. We explain In details why so many people are using it and why are is so important in your working style in terms of coding methods.
1st we show you how to download it and run in your system.
Use this link and download then follow below Instructions. “https://git-scm.com/downloads”
Installing git in Ubuntu (Example). 1st go to ubuntu terminal  and run this line of code “$ sudo apt-get install git”
Git via Git
If you have git in your machine and enhance your git version use below link
git clone https://github.com/git/git
2nd we will talk a session on VCS (Version Control System).
What is a version control and why we should know it mean in git. VCS is a system that maintain & record your changes in files. So that you can call back them even Specific version. You will use software source code as the files being version controlled. In reality you can use it with any type of  file in your system.
If you are a graphic designer or web designer it’s a wise thing to use it. Because using this you can keep every changes of your file or a layout design. By the using (VCS-version control system) it’s allow to recall your modification in previous state, compare changes over time or if you screw something with your layout or lost file even you can  easily recover them.

Local Version Control Systems
In Local version control systems you can maintain your files version locally. Take a look in below image to understand the local version control systems.



Centralized Version Control Systems
Region to create CVCS system that the people need to collaborate with developers on their systems. To deal with that CVCS were developed. Flow off CVCS is like CVS, its create like a subversion. A single server having all versioned filed, and so many user that check out files for the central place. This has been the standard version control. Take a look a below image for seeing structure.
 


Assembla
Assembla is a platform where we create a account (which is paid. For using free we need to use git hub – describe few next blog.)

In  Assembla we have so many this to do to maintain our project. Like create project folder, Update stream, followed ticket, Create Ticket, sign task to your team members with notifications.

When you create a Directory for any project KAM (Example). Then you have to sign this to design and developer (that could be any number of but we are have 2 example). That will create a SSH key which need to add in your system that will connect your system with your branch and server depends on your permission which give provided by project creator.
After Creating a Repository we land to Master Branch by default. On Master branch we update over project 1st code (it’s good way  that not to use master branch when ever your project is in final stage.)

In master branch we create two sub branch one for designer and 2nd for developer
1st branch create Designer
2nd branch create for developer

When computer 1 doing its task on its machine he will follow its LVCS (Local version control system).
With some basic git command  
1.       Cd  ~/kam/ (this command for find folder where you have branch kam_responsive  [exmaple] ). This command will in your terminal.
2.       After done your code changes work or in mid where you want remark on your code.
3.       Git status  (git status command will show you your file status that what changes have you done in your file).
4.       Git add –A (this command will add your files changes local and ready to push on your branch. )
You can also check and insure that your files are save or not by using “git status” command.
5.       Git push origin kam_responsive [exmple].
After follow this step save your changes on your branch (kam_responsive). Then developer will pull your code by using this command “git pull origin kam_wp” this branch create for developer “kam_wp”.
Developer will update its code by merging your code into its own code files.
We can also follow other way to do this. Kam_responsive (designer branch) and kam_wp(developer branch) can merge in 3rd branch. But using 3rd branch we have to take pull before push.
Then you can push your code to server.
 

No comments:

Post a Comment