!!!参考サイト !Downloading the Source Tree / android open source project *http://source.android.com/source/downloading.html !Public Repositories / github *https://github.com/android !分散バージョン管理システムGitの使い方入門 / SourceForge.jp Magazine *http://sourceforge.jp/magazine/09/02/02/0655246 $ git init $ git clone git://git.sourceforge.jp/gitroot/test/test.git $ git status $ git add [file1] [file2...] $ git commit $ git push [user@host:/path/to/repogitory] $ git pull [user@host:/path/to/repogitory] $ man git-init $ man git-commit $ man gittutorial !Git を使いこなすための20のコマンド / SourceForge.jp Magazine *http://sourceforge.jp/magazine/09/03/16/0831212 *リポジトリの作成およびメンテナンスに利用するコマンド: git init リポジトリを作成する git clone 既存のリポジトリの複製を作る git fsck リポジトリの正当性チェックを行う git gc リポジトリ内の不要なオブジェクトを削除し、最適化を行う *作業ツリーやブランチを操作・管理するコマンド: git status 変更が加えられたファイルを表示する git diff ファイルに加えられた変更点をdiff形式で表示する git add コミットするファイルを指定する git commit 変更点をコミットする git log コミットログを閲覧する git reset 直前のコミットを取り消す git revert 作業ツリーを指定したコミット時点の状態にまで戻す git branch ブランチ情報の表示およびブランチの作成 git checkout ブランチの切り替え git show-branch ブランチの作成/変更/マージ履歴を表示 git merge ローカルブランチのマージを行う git tag コミットにタグを付ける git stash 現在の作業ツリーの状態を一時的に保管する git rebase ブランチの派生元(上流)を変更する *ほかのリポジトリとの連携を行うコマンド: git pull ほかのリポジトリの変更点をローカルリポジトリにマージする git push 公開リポジトリに自分のリポジトリの内容を送信する !httpsでgitサーバを立てて複数人でいじれるとこまで行いました / Qiita @ota40264 *https://qiita.com/ota40264/items/1248f468d9d9280930fc ""プロトコルはhttpsでCentOSにリポジトリを入れてgitサーバを立ち上げます。 yum install git *httpd.conf DAV on SSLRequireSSL Require valid-user AuthType Basic ... $ git init --bare hoge $ chown -R apache:apache hoge *クライアント .gitconfigに [http] sslVerify = false git update-server-info ""とコマンドを打たなきゃダメらしい。しかも毎回。 ""毎回は面倒なので mv hoge/hooks/post-update.sample hoge/hooks/post-update git clone https://www.xxx.jp/git/hoge $ git config --global user.email "YamadaKun@gmail.com" $ git config --global user.name "YamadaKun" ""commitまでは正常に動いており、pushで躓いているみたいです。 ""調べた結果 ""何もない、まっさらなリポジトリでは git push origin master !TortoiseGitのセットアップ / Qiita @SkyLaptor *https://qiita.com/SkyLaptor/items/6347f38c8c010f4d5bd2 ""Windows上にTortoiseGitを導入し、GitLab上のリモートリポジトリに接続するまでの手順。 ""なお、リモートリポジトリには公開鍵認証によるSSH接続を行うものとする。 ""TortoiseGitは裏でGit for Windowsを使用するため、先に入れておく必要がある。 ""改行コードの変換動作については、勝手に改行コードを変えてほしくないので"Checkout as-is, commit as-is"を選択して次に進む。 *TortoiseGitのセットアップd *日本語パッケージのインストール