Skip to content

jangrarajat/Github-command

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 

Repository files navigation

           *#git codes#* 

{git --version} = This code for cahking git version

{git config --global user.name "github user name"} {git config --global user.email "github email"}

{git clone } = clone project GitHub to -> computer(visual studio code) {git status} = chaking any status

{ cd folder name } = enter in folders {cd .. } = exit from folders {mkdir new folder name} = creating new folder

{ clear }

{ Ls } = chaking files { Ls -a } = chaking all hiden files

{git add file name}/{git add .}for all file adding {git commit -m "some message"} {git push origin main} Github to computer { git pull origin main } = ( Github to computer new updates content )

used to create a new git repo

{git init} = used to create a new git repo {git remote add origin } {git remote -v} = to verify remote {git branch } = to check branch {git branch -m main} = to rename branch {git push origin main} = computer to git hub

Branch commands { git branch } = (to check branch ) { git branch -m main } = (to rename branch) { git checkout } = ( to navigate) { git checkout -b } = ( to create new branch ) { git branch -d < branch name>} = ( to delete branch )

Way 1 { git diff < branch name >} = ( to compare commits, branches , files&more) { git merge < branch name >} = (to merge 2 branches) Way 2 Create a Pull request in github

About

This repository contains all essential Git & GitHub commands

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published