﻿<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ja">
	<id>https://wiki.blender.jp/index.php?action=history&amp;feed=atom&amp;title=%E5%88%A9%E7%94%A8%E8%80%85%3ABrita%2FConfigs%2FGit</id>
	<title>利用者:Brita/Configs/Git - 版の履歴</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.blender.jp/index.php?action=history&amp;feed=atom&amp;title=%E5%88%A9%E7%94%A8%E8%80%85%3ABrita%2FConfigs%2FGit"/>
	<link rel="alternate" type="text/html" href="https://wiki.blender.jp/index.php?title=%E5%88%A9%E7%94%A8%E8%80%85:Brita/Configs/Git&amp;action=history"/>
	<updated>2026-09-12T03:37:56Z</updated>
	<subtitle>このウィキのこのページに関する変更履歴</subtitle>
	<generator>MediaWiki 1.31.0</generator>
	<entry>
		<id>https://wiki.blender.jp/index.php?title=%E5%88%A9%E7%94%A8%E8%80%85:Brita/Configs/Git&amp;diff=146069&amp;oldid=prev</id>
		<title>Yamyam: 1版 をインポートしました</title>
		<link rel="alternate" type="text/html" href="https://wiki.blender.jp/index.php?title=%E5%88%A9%E7%94%A8%E8%80%85:Brita/Configs/Git&amp;diff=146069&amp;oldid=prev"/>
		<updated>2018-06-28T21:07:09Z</updated>

		<summary type="html">&lt;p&gt;1版 をインポートしました&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;ja&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← 古い版&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;2018年6月28日 (木) 21:07時点における版&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;ja&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(相違点なし)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Yamyam</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.blender.jp/index.php?title=%E5%88%A9%E7%94%A8%E8%80%85:Brita/Configs/Git&amp;diff=146068&amp;oldid=prev</id>
		<title>wiki&gt;Brita: moved User:Brita/configs/git to User:Brita/Configs/Git: upper case to get listed in the TOC</title>
		<link rel="alternate" type="text/html" href="https://wiki.blender.jp/index.php?title=%E5%88%A9%E7%94%A8%E8%80%85:Brita/Configs/Git&amp;diff=146068&amp;oldid=prev"/>
		<updated>2014-10-30T16:36:33Z</updated>

		<summary type="html">&lt;p&gt;moved &lt;a href=&quot;/%E5%88%A9%E7%94%A8%E8%80%85:Brita/configs/git&quot; class=&quot;mw-redirect&quot; title=&quot;利用者:Brita/configs/git&quot;&gt;User:Brita/configs/git&lt;/a&gt; to &lt;a href=&quot;/%E5%88%A9%E7%94%A8%E8%80%85:Brita/Configs/Git&quot; title=&quot;利用者:Brita/Configs/Git&quot;&gt;User:Brita/Configs/Git&lt;/a&gt;: upper case to get listed in the TOC&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新規ページ&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= Git configuration =&lt;br /&gt;
&lt;br /&gt;
These are my git-related configurations and tips. Feel free to use what you like, but please don't copy my name or email to your settings :)&lt;br /&gt;
&lt;br /&gt;
I have most of my configurations at ~/.gitconfig . This is where settings end up when they are set with ''--global'' from the command line. These configs apply to blender and all the other projects I work on.&lt;br /&gt;
&lt;br /&gt;
I have settings specific to blender at ~/blender-source/.git/config . Settings placed here do not affect other git projects and can override the global settings. To set options for the blender project only from the command line, don't pass ''--global'' or ''--system''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''~/.gitconfig''' - contains my commit information, aliases and colors&lt;br /&gt;
&amp;lt;source lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
[user]&lt;br /&gt;
	name = Ines Almeida&lt;br /&gt;
	email = non-blender@mail.com&lt;br /&gt;
[core]&lt;br /&gt;
	editor = pico&lt;br /&gt;
[alias]&lt;br /&gt;
	ci = commit&lt;br /&gt;
	co = checkout&lt;br /&gt;
	rb = rebase -i&lt;br /&gt;
	br = branch&lt;br /&gt;
	st = status&lt;br /&gt;
	df = diff&lt;br /&gt;
	undo = reset --soft HEAD^&lt;br /&gt;
	#show the log of diffs for a file &amp;gt;&amp;gt; git fdiff source.c&lt;br /&gt;
	fdiff = log -u&lt;br /&gt;
	#diff a specific revision against it's parent &amp;gt;&amp;gt; git diffr hash&lt;br /&gt;
	diffr  = &amp;quot;!f() { git diff &amp;quot;$1&amp;quot;^..&amp;quot;$1&amp;quot;; }; f&amp;quot;&lt;br /&gt;
	lg = log --graph --pretty=tformat:'%h %C(cyan)[%ar]%C(reset)%Cgreen%d%Creset %s - %C(yellow dim)%an%C(reset)' --all --since&lt;br /&gt;
[color]&lt;br /&gt;
	ui = true&lt;br /&gt;
	# colors and presentation options:&lt;br /&gt;
	# - normal, black, red, green, yellow, blue, magenta, cyan, or white&lt;br /&gt;
	# - bold, dim, ul, blink, and reverse&lt;br /&gt;
&lt;br /&gt;
[color &amp;quot;branch&amp;quot;]&lt;br /&gt;
	#current, local, remote (a remote-tracking branch in refs/remotes/),&lt;br /&gt;
	#upstream (upstream tracking branch), plain (other refs).&lt;br /&gt;
	current = white reverse&lt;br /&gt;
	local = white&lt;br /&gt;
&lt;br /&gt;
#[color &amp;quot;decorate&amp;quot;]&lt;br /&gt;
	#branch, remoteBranch, tag, stash or HEAD for local branches, &lt;br /&gt;
	#remote-tracking branches, tags, stash and HEAD, respectively.&lt;br /&gt;
&lt;br /&gt;
#[color &amp;quot;grep&amp;quot;]&lt;br /&gt;
	#http://git-scm.com/docs/git-config&lt;br /&gt;
&lt;br /&gt;
#[color &amp;quot;interactive&amp;quot;]&lt;br /&gt;
	#prompt, header, help or error,&lt;br /&gt;
&lt;br /&gt;
[color &amp;quot;diff&amp;quot;]&lt;br /&gt;
	#plain (context text), meta (metainformation), frag (hunk header), &lt;br /&gt;
	#func (function in hunk header), old (removed lines), new (added lines), &lt;br /&gt;
	#commit (commit headers), or whitespace (highlighting whitespace errors).&lt;br /&gt;
	meta = yellow bold&lt;br /&gt;
	frag = white dim&lt;br /&gt;
	func = white ul&lt;br /&gt;
	old = red&lt;br /&gt;
	new = green&lt;br /&gt;
	whitespace = yellow reverse&lt;br /&gt;
&lt;br /&gt;
[color &amp;quot;status&amp;quot;]&lt;br /&gt;
	#header, added or updated (but not committed), changed (but not added in the&lt;br /&gt;
	#index), untracked, branch, or nobranch&lt;br /&gt;
	added = green&lt;br /&gt;
	changed = yellow&lt;br /&gt;
	untracked = red&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''~/blender-git/blender/.git/config''' - this is what I *added*&lt;br /&gt;
&amp;lt;source lang=&amp;quot;ini&amp;quot;&amp;gt;&lt;br /&gt;
[user]&lt;br /&gt;
	email = britalmeida@gmail.com&lt;br /&gt;
[pull]&lt;br /&gt;
	rebase = true&lt;br /&gt;
[alias]&lt;br /&gt;
	pullb = &amp;quot;!git pull;git submodule foreach git pull origin master&amp;quot;&lt;br /&gt;
	fs = submodule foreach git&lt;br /&gt;
	pushs = log origin/master..master&lt;br /&gt;
	lg = log --graph --pretty=tformat:'%h %C(cyan)[%ar]%C(reset)%Cgreen%d%Creset %s - %C(yellow dim)%an%C(reset)' --all --since 2days&lt;br /&gt;
        lgme = log --graph --pretty=tformat:'%h %C(cyan)[%ar]%C(reset)%Cgreen%d%Creset %s - %C(yellow dim)%an%C(reset)' --all --since 1week --author Ines&lt;br /&gt;
        socmerge = &amp;quot;!git fetch;git submodule foreach git pull origin master;git merge origin/master&amp;quot;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Settings like my email override the ones I defined in the global config file.&lt;br /&gt;
The alias 'lg' is also being reset.&lt;br /&gt;
* ''''lg'''' prints the commit version log in a legible form (in my opinion) and constrains it to 2days. '2days' can be removed from the definition for flexibility, in which case the command should be used like 'git lg 3days' instead of 'git lg'.&lt;br /&gt;
* ''''lgme'''' shows my weekly progress, it is useful to build reports&lt;br /&gt;
* ''''pullb'''' is a short for the recommended way of pulling (note that I have pull with rebase set to true):&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git pull&lt;br /&gt;
git submodule foreach git pull origin master&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
* ''''socmerge'''' fetches and merges from master into the branch I am currently working on (in this case the soc branch)&lt;br /&gt;
* ''''pushs'''' shows a log of commits to be pushed&lt;br /&gt;
* ''''fs'''' executes a command foreach submodule. The usage is: 'git fs pull' or 'git fs pushs', etc.&lt;br /&gt;
&lt;br /&gt;
From Campbell:&lt;br /&gt;
&lt;br /&gt;
Find out what I did over the last week - using media-wiki syntax for&lt;br /&gt;
GitCommit &amp;amp; BugReport (nice for writing weekly logs)&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;git log --stat --decorate --format=&amp;quot;%C(yellow){{GitCommit|%h}}%n%C(green) %B%Creset&amp;quot; --author=&amp;quot;Campbell Barton&amp;quot; --since=1.weeks | perl -e &amp;quot;s/\bT(\d+)\b/\{\{BugReport\|\$1\}\}/&amp;quot; -pi&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Aggressive gc, (remove rubbish from stashes and deleted branches)&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;git -c gc.reflogExpire=0 -c gc.reflogExpireUnreachable=0 -c gc.rerereresolved=0 -c gc.rerereunresolved=0 -c gc.pruneExpire=now gc --aggressive&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Debugging with bisect =&lt;br /&gt;
To search for a change that introduced a problem, git offers an utility for binary search.&lt;br /&gt;
For this to be quick, it is a good idea to disable most options on the build configuration.&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
  git bisect start&lt;br /&gt;
  git bisect bad ##current version has the problem&lt;br /&gt;
  git bisect good v2.69 ##tags and hashes can be used&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
git will now present the revision in the middle of the good and bad one. Compile, test, and tell git if it is a good or bad one:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
  git bisect [good|bad]&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
In the end, to cleanup the bisect state:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
  git bisect reset&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>wiki&gt;Brita</name></author>
		
	</entry>
</feed>