Git For Beginners

From UABgrid Documentation
Revision as of 16:04, 18 June 2018 by Ravi89@uab.edu (Talk | contribs)

Jump to: navigation, search

Git is a version control system for tracking changes in computer files and coordinating work on those files among multiple people.


Configuration

To configure user information for all local repositories use the following commands:

  • Set the name you want attached to your commit transactions.
 git config --global user.name "[name]"
  • Set the email you want atached to your commit transactions
git config --global user.email "[email address]"

Initializing a git repository

To initialize a new git repository, run:

[ravi89@login001 Tutorial_June_2018]$ git init test
Initialized empty Git repository in /data/user/ravi89/HPC_Training/Tutorial_June_2018/test/.git/
[ravi89@login001 Tutorial_June_2018]$

To make an already existing directory, a git repo, run:

cd EXISTING_DIRECTORY
git init
Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox