PGメモ

非エンジニアの記録

Git

CentOS5.9にGitサーバーを立てる。

意気揚々とgitサーバを立てる事にする・・がパッケージがない。 # yum install git-daemon Loaded plugins: fastestmirror, security Loading mirror speeds from cached hostfile * base: ftp.tsukuba.wide.ad.jp * extras: mirrors.hust.edu.cn * updates:…

私的にgitでよく使うコマンド

Git

ローカル&リモートにブランチを作る $ git checkout -b working origin $ vim test.txt $ git commit -am "commit" $ git push origin workingローカルブランチを削除 $ git branch -d <branchname>リモートブランチを削除 $ git push --delete <repository> <branchname>ブランチをマージする $ </branchname></repository></branchname>…

GitHubで初めてのコミット

まず始めにリポジトリを作ります。GitHubの画面の右下にある「New repository」をクリック リポジトリの名前を入れます 完成 次いでローカルリポジトリを作ります・・が その前に初期設定をします $ git config --global user.name '<user_name>' $ git config --global</user_name>…

CentOSにgitを入れる

Git

デフォルトでは入りません。レポジトリを追加します。 # rpm -Uvh http://repo.webtatic.com/yum/centos/5/latest.rpm # yum install --enablerepo=webtatic git-all