
Git Hub Git Batch Commands By Salman Ghouri
- git status: situations (repositry or not)
- git init: Make repositry
- git add --a: staging area add all
- git commit -m "Initial Commit" : commit project
- git log : check all commits Check All history software
- rm -rf .git : remove Repositry
- git clone link : download anytype of git directory
- psw:Enter present library
- ls:cotant list
- touch : file name crate textfile
- .gitignore : ignore (*.log,/dir/)
- git diff : (compare diffrence/ Compare --staging area vs working area)
- git diff --stages : privious changes describe
- git commit -a -m "text" : skip commit/changes
- git rm filename.txt : remove file
- git mv filename.txt change.txt : change file name/Rename
- git rm --cached filename.txt : untrack file after mention in gitignore file
- rm -rf .git : remove repositry
- git log -p -no :check what changes make in repositries (q exit)
- git log --stat: show all history changes (short summary)
- git log --pretty=oneline / full line : show all history
- git log --since-2.days : show before 2 days data
- Filter to search extension in website git.com
- git commit --amend : Change in pure repositry file
- git checkout -- filename / -f(all) : restore/reverse command
- //pull & push (remote)
- git remote : remote after enter code from git after make repositry like@git remote add origin email@
- git push -u origin master : push in github
- // permission codes in git hub::::
- git remote
- git remote add origin https://github.com/Salmanghouri/simple-calculator-code.git
- git remote -v
- git push -v origin master
- //////////////////////////////////
- Alias : Short keys
- git config --gobal alias.(short) functionname
- ////////////////////////////////////////////////
- MAKE new branch//
- git checkout -b branchname : make branch
- git checkout master : goto your main branch
- git branch : show all branchess
- ///////////////Merge branch to master.
- first go branch,commit,then go master
- git merge branchname : enter whose branch you merdge with master
- 2nd if you can change on master . visual code show come code you can change code
- //
- git a .
- git commit -m
- //black merging screen
- escape(esc),colan(;)......
- -----------------------------------------------------------------------------------------------
- git branch : show branches
- git branch -v : show all last changes in branches
- git branch --merged : show all merdge branches
- git branch --no-merged : show all no merdge branches
- _______________________________________________________________________________________________
- git branch -d branchname : delete your branch (capital -D use for delete without merdge)//
- git push origin bugfix:newbranchname : push branch seperately to git

0 comments:
Post a Comment