Git Hub Usage Manual
GitHub Account Creation And Setup Configuration:
- Need to create an account on https://github.com with official email id. And also activate two factor authentication and set profile picture over there. Once done with these inform Jaco about it, so he can add you in the CeX organization account.
- Now create the Personal Access Token from the Settings, it will be useful when we want to push the changes to the remote through Git Bash.
- Download GitHub Desktop from https://desktop.github.com/ and Git from http://git-scm.com/download/ and install these two applications.
- When you start GitHub desktop, you have to login over there. To login on GitHub Desktop goto Tools And Options and then in Options you will find the add account option.
- For Git open Git Bash and run $ git config –global user.email “<EmailID>” command, this will configure your account in Git.
Continue reading “Basic Git Hub Usage Manual”
Before we start with this article I will suggest you to first have a quick look to these articles.
- Understanding GIT and GitHub
- Basic commands that are used in GIT
Okay.. Want to start working with Git ? Confused ! where to start.. Alright I have a few suggestions for you that will answer you where to start working and get your hands-on on Git commands.
Git Tutorials Playlist
This Git Tutorials Playlist cover all basic concepts and understanding about Git, Git bash, and all basic git operations.
Git – Self-paced Learning
This will familiarize you with Git commands with giving you the good Visual guide. I simply call it as learn with fun. 😉
These are the free eBooks for git which helps you know more about Git.
Hope you found this useful.. Happy Coding.. !!
Basic Commands used in GIT
Here I’m listing all basic Commands used in GIT bash.
- git –version: Tells you about version
- git –global Page on user.name “Code Hotfix” : Register user name
- git –global user.email “firstname.lastname@example.org” : Register user email
- git config –list : Git Config
- git help / git help command : Git help
- pwd : Gives you the working directory of repository
- cd .. : To go back
- ls : Gives you all folder
- cd nameOfFolder : To move to the specified folder
- git init : To make folder as a git repository (First move into the folder to make it as a repository)
- ls -la : Gives you the list of folder in repository that keep record of changes
- git add . : To aware git to add the file in the directory it adds to the staging area (. Means all) you can replace (.) With file name like second.txt
- git commit -m “Expressing the detail about change ” : This will commit the changes with the note
- git log : Gives you the commit history
- git log –author=”CodeHotfix” : Gives you commit history of specific author
- git status : Gives you the status of pending changes.
- git diff : Give you the difference of working directory and repository
- git diff –staged : Compare staged area with repository
- git rm filename : Removes the file from repository as well as working directory
- git mv oldname to newNAME : Also rename the file
- git mv oldname to newPATH/newNAME : Also rename the file and move to the new path
- git commit -am “Commit message” :Directly commit to the repository without adding to the staging area
- git checkout — Views/Home/Index.cshtml : Undo Pending Changes
- git reset HEAD filename : Unstage the file to the working area
- git checkout refrenceumber — file/folder : Get the previous version copy of specified file
You can also read Understanding GIT and GitHub
In this article I’ll explain you what is GIT and GitHub ? May be you have a basic idea about git or you just heard about it. First I would like to start with GIT. Understanding GIT will give you better understanding what GitHub is.
What is GIT ?
GIT is a widely used distributed version control system for software development. Git is responsible for keeping track of changes to content (usually source code files), and it provides mechanisms for sharing that content with others. It is a distributed revision control system with an emphasis on speed, data integrity, and support for distributed, non-linear workflows. It provides you the source code management.
Git works by reading a Local code repository (just a folder containing code for your project) on your computer and the mirroring that code. Git stores and thinks about information much differently than systems like SVN .
Git is a version control system; think of it as a series of snapshots (commits) of your code. You see a path of these snapshots, in which order they where created. You can make branches to experiment and come back to snapshots you took.
Continue reading “Understanding GIT and GitHub”