<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://onnocenter.or.id/wiki/index.php?action=history&amp;feed=atom&amp;title=Git%3A_guide</id>
	<title>Git: guide - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://onnocenter.or.id/wiki/index.php?action=history&amp;feed=atom&amp;title=Git%3A_guide"/>
	<link rel="alternate" type="text/html" href="https://onnocenter.or.id/wiki/index.php?title=Git:_guide&amp;action=history"/>
	<updated>2026-04-19T16:30:32Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.4</generator>
	<entry>
		<id>https://onnocenter.or.id/wiki/index.php?title=Git:_guide&amp;diff=42389&amp;oldid=prev</id>
		<title>Onnowpurbo: New page: git - the simple guide  just a simple guide for getting started with git. no deep shit ;)  by Roger Dudler credits to @tfnico, @fhd and Namics this guide in deutsch, español, français, i...</title>
		<link rel="alternate" type="text/html" href="https://onnocenter.or.id/wiki/index.php?title=Git:_guide&amp;diff=42389&amp;oldid=prev"/>
		<updated>2015-02-05T00:38:50Z</updated>

		<summary type="html">&lt;p&gt;New page: git - the simple guide  just a simple guide for getting started with git. no deep shit ;)  by Roger Dudler credits to @tfnico, @fhd and Namics this guide in deutsch, español, français, i...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;git - the simple guide&lt;br /&gt;
&lt;br /&gt;
just a simple guide for getting started with git. no deep shit ;)&lt;br /&gt;
&lt;br /&gt;
by Roger Dudler&lt;br /&gt;
credits to @tfnico, @fhd and Namics&lt;br /&gt;
this guide in deutsch, español, français, italiano, nederlands, português, русский, türkçe,&lt;br /&gt;
မြန်မာ, 日本語, 中文, 한국어 Vietnamese&lt;br /&gt;
please report issues on github&lt;br /&gt;
Frontify - Collaboration for Web Designers &amp;amp; Front-End Developers&lt;br /&gt;
setup&lt;br /&gt;
&lt;br /&gt;
Download git for OSX&lt;br /&gt;
&lt;br /&gt;
Download git for Windows&lt;br /&gt;
&lt;br /&gt;
Download git for Linux&lt;br /&gt;
create a new repository&lt;br /&gt;
&lt;br /&gt;
create a new directory, open it and perform a&lt;br /&gt;
git init&lt;br /&gt;
to create a new git repository.&lt;br /&gt;
checkout a repository&lt;br /&gt;
&lt;br /&gt;
create a working copy of a local repository by running the command&lt;br /&gt;
git clone /path/to/repository&lt;br /&gt;
when using a remote server, your command will be&lt;br /&gt;
git clone username@host:/path/to/repository&lt;br /&gt;
workflow&lt;br /&gt;
&lt;br /&gt;
your local repository consists of three &amp;quot;trees&amp;quot; maintained by git. the first one is your Working Directory which holds the actual files. the second one is the Index which acts as a staging area and finally the HEAD which points to the last commit you've made.&lt;br /&gt;
add &amp;amp; commit&lt;br /&gt;
&lt;br /&gt;
You can propose changes (add it to the Index) using&lt;br /&gt;
git add &amp;lt;filename&amp;gt;&lt;br /&gt;
git add *&lt;br /&gt;
This is the first step in the basic git workflow. To actually commit these changes use&lt;br /&gt;
git commit -m &amp;quot;Commit message&amp;quot;&lt;br /&gt;
Now the file is committed to the HEAD, but not in your remote repository yet.&lt;br /&gt;
pushing changes&lt;br /&gt;
&lt;br /&gt;
Your changes are now in the HEAD of your local working copy. To send those changes to your remote repository, execute&lt;br /&gt;
git push origin master&lt;br /&gt;
Change master to whatever branch you want to push your changes to.&lt;br /&gt;
&lt;br /&gt;
If you have not cloned an existing repository and want to connect your repository to a remote server, you need to add it with&lt;br /&gt;
git remote add origin &amp;lt;server&amp;gt;&lt;br /&gt;
Now you are able to push your changes to the selected remote server&lt;br /&gt;
branching&lt;br /&gt;
&lt;br /&gt;
Branches are used to develop features isolated from each other. The master branch is the &amp;quot;default&amp;quot; branch when you create a repository. Use other branches for development and merge them back to the master branch upon completion.&lt;br /&gt;
&lt;br /&gt;
create a new branch named &amp;quot;feature_x&amp;quot; and switch to it using&lt;br /&gt;
git checkout -b feature_x&lt;br /&gt;
switch back to master&lt;br /&gt;
git checkout master&lt;br /&gt;
and delete the branch again&lt;br /&gt;
git branch -d feature_x&lt;br /&gt;
a branch is not available to others unless you push the branch to your remote repository&lt;br /&gt;
git push origin &amp;lt;branch&amp;gt;&lt;br /&gt;
update &amp;amp; merge&lt;br /&gt;
&lt;br /&gt;
to update your local repository to the newest commit, execute&lt;br /&gt;
git pull&lt;br /&gt;
in your working directory to fetch and merge remote changes.&lt;br /&gt;
to merge another branch into your active branch (e.g. master), use&lt;br /&gt;
git merge &amp;lt;branch&amp;gt;&lt;br /&gt;
in both cases git tries to auto-merge changes. Unfortunately, this is not always possible and results in conflicts. You are responsible to merge those conflicts manually by editing the files shown by git. After changing, you need to mark them as merged with&lt;br /&gt;
git add &amp;lt;filename&amp;gt;&lt;br /&gt;
before merging changes, you can also preview them by using&lt;br /&gt;
git diff &amp;lt;source_branch&amp;gt; &amp;lt;target_branch&amp;gt;&lt;br /&gt;
tagging&lt;br /&gt;
&lt;br /&gt;
it's recommended to create tags for software releases. this is a known concept, which also exists in SVN. You can create a new tag named 1.0.0 by executing&lt;br /&gt;
git tag 1.0.0 1b2e1d63ff&lt;br /&gt;
the 1b2e1d63ff stands for the first 10 characters of the commit id you want to reference with your tag. You can get the commit id by looking at the...&lt;br /&gt;
log&lt;br /&gt;
&lt;br /&gt;
in its simplest form, you can study repository history using.. git log&lt;br /&gt;
You can add a lot of parameters to make the log look like what you want. To see only the commits of a certain author:&lt;br /&gt;
git log --author=bob&lt;br /&gt;
To see a very compressed log where each commit is one line:&lt;br /&gt;
git log --pretty=oneline&lt;br /&gt;
Or maybe you want to see an ASCII art tree of all the branches, decorated with the names of tags and branches:&lt;br /&gt;
git log --graph --oneline --decorate --all&lt;br /&gt;
See only which files have changed:&lt;br /&gt;
git log --name-status&lt;br /&gt;
These are just a few of the possible parameters you can use. For more, see git log --help&lt;br /&gt;
replace local changes&lt;br /&gt;
&lt;br /&gt;
In case you did something wrong (which for sure never happens ;) you can replace local changes using the command&lt;br /&gt;
git checkout -- &amp;lt;filename&amp;gt;&lt;br /&gt;
this replaces the changes in your working tree with the last content in HEAD. Changes already added to the index, as well as new files, will be kept.&lt;br /&gt;
&lt;br /&gt;
If you instead want to drop all your local changes and commits, fetch the latest history from the server and point your local master branch at it like this&lt;br /&gt;
git fetch origin&lt;br /&gt;
git reset --hard origin/master&lt;br /&gt;
useful hints&lt;br /&gt;
&lt;br /&gt;
built-in git GUI&lt;br /&gt;
gitk&lt;br /&gt;
use colorful git output&lt;br /&gt;
git config color.ui true&lt;br /&gt;
show log on just one line per commit&lt;br /&gt;
git config format.pretty oneline&lt;br /&gt;
use interactive adding&lt;br /&gt;
git add -i&lt;br /&gt;
links &amp;amp; resources&lt;br /&gt;
graphical clients&lt;br /&gt;
&lt;br /&gt;
    GitX (L) (OSX, open source)&lt;br /&gt;
    Tower (OSX)&lt;br /&gt;
    Source Tree (OSX &amp;amp; Windows, free)&lt;br /&gt;
    GitHub for Mac (OSX, free)&lt;br /&gt;
    GitBox (OSX, App Store)&lt;br /&gt;
&lt;br /&gt;
guides&lt;br /&gt;
&lt;br /&gt;
    Git Community Book&lt;br /&gt;
    Pro Git&lt;br /&gt;
    Think like a git&lt;br /&gt;
    GitHub Help&lt;br /&gt;
    A Visual Git Guide&lt;br /&gt;
&lt;br /&gt;
get help&lt;br /&gt;
&lt;br /&gt;
    Git User Mailing List&lt;br /&gt;
    #git on irc.freenode.net&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Referensi==&lt;br /&gt;
&lt;br /&gt;
* http://rogerdudler.github.io/git-guide/&lt;/div&gt;</summary>
		<author><name>Onnowpurbo</name></author>
	</entry>
</feed>