User Tools

Site Tools


git

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

git [2010/04/19 01:35]
hef
git [2021/05/02 21:36]
Line 1: Line 1:
-====== About ====== 
- 
-The acm has public git hosting at http://​acm.cs.uic.edu/​git. 
- 
- 
- 
-====== Creation ====== 
-be connected to ACM 
-  ssh acm.cs.uic.edu 
-===== First time ===== 
- 
-Create a directory called "​git"​ in your home directory. 
-  mkdir -p git 
-  cd git 
-===== Create project repo ===== 
- 
-  mkdir -p myproject.git 
-  cd myproject.git 
-  git init --bare 
-==== Sharing (optional) ==== 
-While still in ~/​git/​myproj.git:​ 
- 
-  touch git-daemon-export-ok 
-  echo "a nifty project"​ > description 
-  ​ 
- 
-===== Publishing your work ===== 
-I assume you have already created a local git project with something like the following commands: 
-  cd myProject 
-  git init 
-  vim .gitignore 
-  git add . 
-  git commit ​ 
-==== add ACM as remote ==== 
-Add acm as a remote repo 
-  git remote add origin ssh://​user@acm.cs.uic.edu:​~/​git/​myproj.git 
-  ​ 
-=== Push! === 
-The syntax for this command is "push toBranch fromBranch"​ 
-  git remote push origin master 
  
git.txt ยท Last modified: 2021/05/02 21:36 (external edit)