Steps to install msysGit software to get GitHub Repository
Creating Repository Under GitHub
Exporting Projects to GitHub Repository
Importing Repository from GitHub
More Commands
Why GIT Why Not SVN?
Introduction
Git is a free and open source distributed version control system used as software configuration Management tool.
Version Control System? And what does it do?
Version Control System: The name itself means controlling of code i.e. source code management which allows programmers to easily share the code of their work with other programmers. By this feature developers can develop different feature on the same code by keeping track of all old versions.
Introduction
Version control system consists of repository, where all files resides at one place. A repository works like a database, which stores each version(history of changes for any file) as a record. Then repository users can ‘checkout’ working copy. After making required changes then ‘commit’ changes back to repository, which can create new version (about the files and person who changed it). By this way developers can pull and push changes to repository in the developed of a web product. This mechanism or procedure is the process of version control system.
Git is a distributed version control system
Git does not use a centralized server.
Git runs on Linux, BSD, Solaris, Darwin, Windows, and other operating systems.
Advantages
Git is a free & open source, distributed version control system designed to handle everything from small to very large projects with speed and efficiency.
Every Git clone is a full-fledged repository with complete history and full revision tracking capabilities, not dependent on network access or a central server.
Branching and merging are fast and easy to do.
Content-tracking rather than file-tracking
Smaller Space Requirement
Steps to install msysGit software to get GitHub Repository
1. To upload your projects to your GitHub Repository, You have to install latest version Git-version.exe from www.code.google.com/p/msysgit/downloads/list and double clicking the download. 2. Run Git Bash program to get Git command prompt
Steps to install msysGit software to get GitHub Repository
Steps to install msysGit software to get GitHub Repository Then Create a SSH Key , at least one SSH Key is required to upload your project from Your System to Git Hub repository. So create one SSH key for your system by using the below command in github command prompt.
Steps to install msysGit software to get GitHub Repository
Steps to install msysGit software to get GitHub Repository
Steps to install msysGit software to get GitHub Repository
Finally copy the public key from “id_rsa.pub” file, it should add to your account on github repository.
Now to identify yourself to git:
Go to git bash shell command prompt and type following commands $ git config –global user.name “Your Name Here” $ git config –global user.email [email_address]
[note: it should be equal to your email id
at github account].
Steps to install msysGit software for GitHub Repository.
This will set the information stored when you commit to a git repo.
Now Copy the ssh-rsa key from the path C:Documents and Settingssivakrishna.ssh
Steps to install msysGit software for GitHub Repository.
Before copying ssh-rsa key , You have create one account for your Repository in “http:\ github.com”.
Steps to install msysGit software for GitHub Repository.
Click on your Account information on GitHub Repository
Steps to install msysGit software for GitHub Repository.
Now Click on “add another public key” under SSH Public Keys.
Creating Repository Under GitHub
Click on “dashboard” link under your GitHub account and click on “create a repository”
Creating Repository Under GitHub
Exporting Projects to GitHub Repository
mkdir Creation
cd Creation
git init
touch README
git add README
git commit -m 'first commit'
Exporting Projects to GitHub Repository
Now you can push the contents of your Rails directory to the empty git repository that we created on Github in the previous step by running the following command in Git Bash shell:
The key difference between the two systems seems to be the model itself. Where Subversion offers a centralized model, Git provides a decentralized model. At the risk of over simplification, this means that Git offers each developer their very own, fully autonomous copy of the entire repository. With Subversion, each developer has their own working copy, but commits changes to a single, central repository.
Speed
Since each developer has a local copy of the entire repository, fundamental actions like diff, commit, etc. are all local. That’s always going to be faster. Fast is good.
That said, server interaction with Subversion isn’t exactly excessive. Developers work in local working directories and only interact with the server in short time.
Why Git Why Not SVN?
Smaller Space Requirement
A Subversion working directory contains two copies of the entire code base. One that is actually being worked on and another tucked away in the .svn directory. Repository required ~12Gb of storage in Subversion and ~420Mb in Git.
Key’s for Branches
1. Creating branches in Git is a lot easier than doing this in SVN.
2. When merging the branch back, SVN didn’t know where that branch started. Git keeps track where branches come from. So when creating a branch, merging back is very simple.
3. When merging the branch back, each change was recorded back as the user who did the merge By the Git where as SVN doesn’t. Git keeps commit messages intact, when merging.
0 comments
Post a comment