newdevs:git:commands
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
newdevs:git:commands [2019/06/28 17:11] – tmccanna | newdevs:git:commands [2024/03/25 16:35] (current) – tmccanna | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Git for Windows | + | **New Developers Working Group** |
+ | ====== | ||
- | ===== Useful Commands ===== | + | * '' |
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
- | ==== Git Commands | + | ==== Rebase |
- | * git add myfile.txt --> stage a specific file | + | If your patch is behind current main, you'll need to rebase it. |
- | | + | |
- | | + | |
- | | + | - Type: git rebase origin/ |
- | | + | |
- | | + | |
- | | + | - Look for merge conflict markers |
- | * git checkout mybranch | + | |
- | * git checkout -b mynewbranch | + | |
- | | + | |
- | * git checkout -- docname.tt2 --> resets a file you' | + | |
- | * git clone < | + | |
- | * git commit | + | ==== Squash Commits ==== |
- | * git commit -m "my commit message" | + | |
- | * git commit < | + | If you have multiple commits in your local branch |
- | * git commit < | + | |
- | * git commit -a --> | + | - Use 'git log' to verify that the commits you want to combine are the most recent |
- | * git config < | + | |
- | * git config < | + | |
- | * git fetch < | + | |
- | * git help --> | + | * pick 9de92lsi9a LP#1839359 Select element on login not accessible |
- | * git log < | + | - Change the word " |
- | * git pull --> | + | * squash |
- | * git pull origin master | + | * fixup --> |
- | * git pull < | + | |
- | * git push working mybranchname | + | |
- | * git push working < | + | |
- | * git remote -v --> | + | |
- | * git reset HEAD myfile.txt | + | If you' |
- | * git reset < | + | |
- | * git rm badfile.txt | + | |
- | * git show < | + | |
- | * git status | + | |
- | * git version | + | |
+ | ==== Common Bash Commands ==== | ||
+ | |||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | |||
+ | ==== Vim Text Editor ==== | ||
+ | |||
+ | The vim text editor is built into the bash console | ||
+ | |||
+ | * '' | ||
+ | * '' | ||
+ | |||
+ | Vim opens in command mode, which allows | ||
+ | * '' | ||
+ | * '' | ||
+ | * '': | ||
+ | * '': | ||
+ | * '': | ||
+ | * '': | ||
+ | * ''? | ||
- | ==== Other Commands ==== | ||
- | * cd --> move back to the home folder | ||
- | * cd foldername --> move from the current folder to a child folder | ||
- | * cd .. --> move up in the folder hierarchy one level | ||
- | * clear --> clears your command window giving you a fresh screen to work with | ||
- | * ls --> list all of the folders and files in the current folder | ||
- | * mkdir newfoldername --> create a new folder | ||
- | * notepad++ newdocname.txt --> create a new file and open it in notepad++ | ||
- | * notepad++ docname.txt --> edit an existing file in notepad++ | ||
- | * pwd --> see what folder you are currently in | ||
newdevs/git/commands.1561756261.txt.gz · Last modified: 2022/02/10 13:34 (external edit)