siteloft.blogg.se

Git tag show
Git tag show













git tag show

Git checkout master # swich to the master branch (master is trunk branch created by default) # resync a branch from master (ie master is ahead, have changes that should be incorporated into the branch) Git tag show -tags # long output with tag desc and commit diff Git tag show v0.5 # show description of the specified tag Git push -u origin 2018_0901_wsl # push the tag to github Git tag -a 2018_0901_wsl -m "wsl git hopefully not creating cr/lf chaos" # create a release Git tag -a v0.5 2128f04 -m "eg of adding a tag at a specific commit point" Git push origin -delete issue123 # delete remote branch Git branch -delete issue123 # delete local branch FORCEFULLY ie, even if NOT merged or pushed yet Git branch -d issue123 # delete local branch Git push -u origin issue123 # push the local branch "issue123" to origin (github) Git checkout -b issue123 # create a branch and switch to it at the same time (?) # actually, the info is last commit msg, branch desc so far only visible in the editor that comes up when using -edit-descriptiong. Git branch -list -v # list branches and descriptioins Git branch -edit-description issue123 # modify a description for the named branch. Git branch issue123 # create a branch called "issue123" (eg after a bug#) Git branch -r # list all branches avail in (r)emote server * indicate the current branch working on. Git show COMMIT_HASH # details of the commit Git log issue123 ^master # branch diff, changes in branch issue123 but NOT in master Gitk FILE # GUI tool to see commits/diff (but not branches?) Git diff ? # find how PATH/FILE differ from current state with last commit in git Current edit against git repo is NOT shown! Git log -p PATH/FILE # list last -N COMMITED changes. Git log -p # patch: show diff introduced by each change (instead of just commit msg for the log)

git tag show

Git log -oneline -graph -decorate # can alias to "lol" for this oft use combo Git log -oneline issue123 # changes pertaining to the specified branch only (?) Git log -oneline file # changes pertaining to the specified file only Git log -oneline # compact log, easier to read! # git act on local copy, except for few commands to interact with master repo. # think these are still acting on local copy. Git status -s | grep "^ M " # short mode, untracked files prefixed with ?

git tag show

Git status -uno # or -untracked-files=no # dont show untracked files # only another git fetch would get these changes. # it will NOT show up in the status command. # if the clone had been some time and master had seen other commits, Git status # show commit staatus within the local copy of repo only.

Git tag show code#

Git add -p # patch-based add (allow committing chunk of code at a time rather than whole file) # but really is adding changes into the git db Git add file # kinda feel like "add new file to be tracked" Git commit file1 -m "comment" # provide check in comment on cli rather than launch editor Git commit file1 file2 # check into local copy (but other don't see this change yet) Git commit -a # most basic workflow after edit, most like svn, commit all changes Git clone # create a local copy of a source code tree















Git tag show