Skip to content

RajaSardar/Basic-Git-commands

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 

Repository files navigation

Git Config:

git config --global user.name "rajasardar"

git config --global user.email "[email protected]"

Git To list remote branches:

git branch -r

You can check them out as local branches with: git checkout -b LocalName origin/remotebranchname

#Git Initialize

git init

git clone /path/to/repository

git clone username@host:/path/to/repository

git add

git add *

git commit -m "Commit message"

git commit -a

git push origin master

git status

git remote add origin

git remote -v

git checkout -b

git checkout

git branch

git branch -d

git push origin

git push --all origin

git push origin :

git pull

git merge

git diff

git diff --base

git diff

git add

git tag 1.0.0

git log

git push --tags origin

git checkout --

git fetch origin

git reset --hard origin/master

git grep "foo()"

Setting up a new Git Repo

##Create a new repository on the command line

touch README.md

git init

git add README.md

git commit -m "first commit"

git remote add origin [email protected]:RajaSardar/.git

git push -u origin master

##Push an existing repository from the command line

git remote add origin [email protected]:RajaSardar/.git

git push -u origin master

git discard all changes from a branch in local

git reset --hard origin/"branch_name"

JS commands

anguler port 4200 kill command

sudo kill $(sudo lsof -t -i:4200)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published