💾 Archived View for tozip.chickenkiller.com › git.gmi captured on 2023-03-20 at 17:32:36. Gemini links have been rewritten to link to archived content

View Raw

More Information

➡️ Next capture (2023-06-16)

-=-=-=-=-=-=-

git

Created 2022-10-29

Cleaning

Dry run:

git clean -dfxn

Actual:

git clean -dfx

Cloning

git clone 192.168.0.14:repos/redact.git
git clone git@gitlab.com:mcturra2000/rpi.git
git clone git@gitlab.com:mcturra2000/cerbo.git

Fetching vs Pulling

git pull = git fetch + git merge, effectively

Copy id

ssh-copy-id vivo

<hr><h2>Patches</h2>

Hack hack hack
git commit
git format-patch -1

<a href="http://stackoverflow.com/questions/2082296/how-do-patches-work-in-git">xlink</a>

<hr><h2>Reverting</h2>

If you want to undo one or more uncommited files: <code>git checkout FILE1 ...</code>

<hr><h2>Tags</h2>

<li>Listing tags: <code>git tag</code>

<li>Creating tags e.g.: <code>git tag -a v1.4 -m 'version 1.4'</code>

<li>Pushing tags upstream: <code>git push --tags</code>

<li>Checking out a tag: <code>git checkout $tagname</code>. When you've finished, go back to whatever branch you were working on before: <code>git checkout master</code>

<hr><h2>Unclassified</h2>

Logs with filenames:
	git log --stat

<hr><h2>Also on this site</h2>

<li><a href="branches.htm">branches</a> - local and remote

<li><a href="config.htm">config</a> - how to configure git

<li><a href="create.htm">create</a> - including creation of bare repos

<li><a href="github.htm">github</a> - specific comments on github, and a list of alternatives

<li><a href="patches.htm">patches</a>

<li><a href="windows.htm">windows</a> - Win 7 native version

<hr>```

Author: Mark Carter

Created: 13-Nov-2010

Updated: 02-Oct-2022