Commit 1eef07e5 authored by TheOuterLinux's avatar TheOuterLinux

...

parent e6ae5a64
......@@ -16,6 +16,7 @@ exiftool - read and write meta information in files
fbi - Linux framebuffer imageviewer
figlet - display large characters made up of ordinary screen characters
findimagedupes - finds visually similar or duplicate images
flydraw - an inline drawing tool
gifsicle - manipulates GIF images and animations
gnuplot - an interactive plotting program
flydraw - an inline drawing tool
......
This diff is collapsed.
usage: git [--version] [--help] [-C <path>] [-c name=value]
[--exec-path[=<path>]] [--html-path] [--man-path] [--info-path]
[-p | --paginate | --no-pager] [--no-replace-objects] [--bare]
[--git-dir=<path>] [--work-tree=<path>] [--namespace=<name>]
<command> [<args>]
These are common Git commands used in various situations:
start a working area (see also: git help tutorial)
clone Clone a repository into a new directory
init Create an empty Git repository or reinitialize an existing one
work on the current change (see also: git help everyday)
add Add file contents to the index
mv Move or rename a file, a directory, or a symlink
reset Reset current HEAD to the specified state
rm Remove files from the working tree and from the index
examine the history and state (see also: git help revisions)
bisect Use binary search to find the commit that introduced a bug
grep Print lines matching a pattern
log Show commit logs
show Show various types of objects
status Show the working tree status
grow, mark and tweak your common history
branch List, create, or delete branches
checkout Switch branches or restore working tree files
commit Record changes to the repository
diff Show changes between commits, commit and working tree, etc
merge Join two or more development histories together
rebase Reapply commits on top of another base tip
tag Create, list, delete or verify a tag object signed with GPG
collaborate (see also: git help workflows)
fetch Download objects and refs from another repository
pull Fetch from and integrate with another repository or a local branch
push Update remote refs along with associated objects
'git help -a' and 'git help -g' list available subcommands and some
concept guides. See 'git help <command>' or 'git help <concept>'
to read about a specific subcommand or concept.
###############
# git - Basic #
###############
Git's usage seems to confuse a lot of people for some reason. I can kind
of see why because of the lingo used by hardcore developers, but this is
really all you need to know:
You've found a project on GitHub, GitLab, Bitbucket, etc. and you want to
grab a copy of the project:
git clone https://gitlab.com/username/projectname.git
You want to check for updates for this project:
cd "/path/to/project"
git pull
You started your own repository on GitLab and now want to start working
on your own project:
git clone https://gitlab.com/username/projectname.git
You've made changes to you project on your computer and want to sync those
changes to GitLab:
cd "/path/to/project"
git add .
git commit -m 'Write something short to summarize what you changed'
git push
*You may then be prompted for a username and a password
*If you plan on making a lot of really small changes and don't know
what to write, just do what I do and use:
git commit -m '...'
Oh crap! You made a big mistake and need to roll your project back to a
previous version:
git log --oneline
git reset #######
*List the commits made from day 1
*Reset to commit "#######" in which would look more like '0840a1c,'
or something like that.
You can also use 'reset' relatively:
git reset -2
*Goes back two commits
......@@ -15,6 +15,7 @@ dig - DNS lookup utility
efax - send/receive faxes with Class 1, 2 or 2.0 fax modem
finch - a Pimpin' Penguin console frontend to libpurple. Instant Messaging client
ftp - Internet file transfer program
git - the stupid content tracker
host - DNS lookup utility
hubic-backup - hubiC backup command line tool for linux & OSX
ip - show / manipulate routing, devices, policy routing and tunnels
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment