Create a git repository on Dreamhost

[sourcecode language="bash"]
$ cd ~
# create a dir for your repositories
$ mkdir git-repos
# create a dir for your project e.g. depot
$系统运维工程 mkdir depot.git
$ init the dir
$ git --bare init
$ cd ..
# create a tmp folder for testing
$ m系统运维工作内容kdir tmp
$ cd tmp
# clone to tmp folder
$ git clone file:///home/yourname/g其他垃圾有哪些东西it-repos/depot.git
# done!
[/sourcecode]
[sourcecode language="bash" wraplines="true"]
# If you want toideal clone it to you computer,
$ git clone ssh://pxiaogithub中文官网网页@xiaopeng.me/home/yourname/git-repos/depot.git
# If you already have thi系统运维工作内容s folder, you may want to checkin your local code into that repository:
$ git clone ssh://pxiao@其他综合收益xiaopeng.me/home/yourname/git-repos/depot.git depot-temp
$ mv depot-temp/.github是干什么的git depot/
$ cd depot
$ git status
$ git config user.name "p八上英语电子课本xiao"
$ git config user.email "eagle.xiao@gmail.com"
# ignore something
$ vi .gitignore
# input: .idea \n .idea/**/*
$ git add .gitignore
$ git commlinux常用命令it .gitignore -m "commit .gitignore"
# commit other files
$ git add .
$ git commit -a -m "initial rev" # here -a mea系统运维工资一般多少ns 'al巴沙鱼为什么不能吃l' not 'add'
$ gidentificationit push origin master
[/sourcecode]