Skip to content

Venkataramuc/gitguide

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 

Repository files navigation

Git guide

Github is code hosting platform for a version control.

This guide teachs you Github essentials like Repositories, Branchs , Commits and Pull requests.

Git Stash

git stash
git stash pop # to apply recent stash.
git stash --keep-index # to track the git add details also
git stash --include-untracked # to track the untracked files means even newly added files. If you specify --include-untracked or -u , Git will include untracked files in the stash being created.
git stash list all the stash .
git stash save "name of the stash" # so we can capture the name of the stash
git stash apply 1 # here we need to give id which we can see from git stash list

git stash save "name of the stash" -k -u # to track the new & untracked files.

Git Log

git lg.
git log --raw

git Branch

git branch.
git branch --list.
git branch --no-merge
git branch --merge

Git Tag

git tag # to see the tags

git tag -a v1.2 -m "this release inlcudes "

git tag <tag_name>

git show <tag_name>

git push origin <tag_name>

delete the tags

git tag -d v1.0

git push origin -d v1.0

we cannot checkout tag,

git checkout -b <tag_name>

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors