User Tools

Site Tools


git

This is an old revision of the document!




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. In reality you can put a git project anywhere, but the web interface will only pick it up if it is in a directory called “git”.

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.1271641062.txt.gz · Last modified: 2021/05/02 21:36 (external edit)