2023_01_07 - mike-zr_git-and-github
2023_01_07 - mike-zr_git-and-github
git tag <tag name> Pushes all the tags in the local git fetch <remote url>
Creates a lightweight tag at the repo to the remote repo. Git goes out to the remote repo
current commit. git push <remote ref> :<tag> and updates its local information
git tag <tag name> <branch> Tells GitHub to delete the tag about what's in the remote repo.
Creates a lightweight tag at the after the colon. git fetch -p <remote url>
last commit on <branch>. Git looks for any dead branches
Remote Repos and removes those references.
git tag -d <tag name>
git remote -v The -p stands for prune.
Deletes the tag.
Lists remote repos. git pull <remote url> <local
git tag -a <tag name> -m "<an‐
branch name>
notation>" git remote add <remote ref>
<remote url> Checks for changes in the
Creates an annotated tag at the
remote repo, and pulls any
current commit. Adds reference to a remote
changes to your local branch. It
repo. <remote ref> can be
git tag -a <tag name> -m "<an‐
will open a commit window with
anything, but is conventionally
notation>" <commit id>
a default commit message you
called origin.
Creates an annotated tag at the can use. Will enter a merge
git remote set-url <remote
specified commit. state if there are conflicts.
ref> <remote url>
git tag --list git pull is actually a 2-in-1
Updates the URL for the remote
Lists tags. command: fetch then merge. It
reference.
git show <tag> first fetches the updates from the
git remote show <remote ref>
remote repo, then merges those
Shows the details of the commit
Returns info about the remote changes into the local repo.
associated with the <tag>, and
repo.
the annotation if there is one.
git clone <remote url>
git tag -f <tag> <commit id>
Clones the remote repo into the
Updates <tag> to be associated
current directory inside a new
with the specified commit.
folder that has the same name
Omitting <commit id> will
as the remote repo. (Git labels
associate the tag with where
this remote as origin by default.)
HEAD is on the current branch
git clone <remote url> <name>
(usually the last commit).
Clones the remote repo into the
git push <remote ref> <tag>
current directory in a new folder
Pushes the tag to the remote
named <name>. (Git labels this
repo.
remote as origin by default.)
git push --force <remote ref>
<tag>
Forces the push of the updated
tag.
git push <remote ref> --tags