Go to the /srv/repos directory. I believe there is a git folder there that you can go into and see the sample repo: cd /srv/repos/git
Create a repo with the git init command: git init <repo name> This will create a directory and also the .git subdirectory. Go into your repo: cd <repo name>
Create a file: touch readme
Add it to the repo: git add readme
Commit the changes: git commit -m "Initial commit"
Now log into Redmine and into the project. Go to Settings then Repository.
Select Git as the SCM and input the path to your git directory: /srv/repos/<name>
Save it then go to the Repositories tab. You should see your repo with the readme file you created.
To check out a copy on your workstation you can use the git clone command: git clone git://<address>/git/<name>
After you make changes and commit you can push it back: git push origin master
After you push you will need to go into the Repositories tab to have Redmine update it. There are ways to schedule this or add it into a hook, but I haven't personally set one up.
You should read those resources to understand more about git. I've been using it for a little while and keep learning new things.
Here's a quick rundown
Here's a quick rundown
Log into your server using SSH.
Go to the /srv/repos directory. I believe there is a git folder there that you can go into and see the sample repo: cd /srv/repos/git
Create a repo with the git init command: git init <repo name> This will create a directory and also the .git subdirectory. Go into your repo: cd <repo name>
Create a file: touch readme
Add it to the repo: git add readme
Commit the changes: git commit -m "Initial commit"
Now log into Redmine and into the project. Go to Settings then Repository.
Select Git as the SCM and input the path to your git directory: /srv/repos/<name>
Save it then go to the Repositories tab. You should see your repo with the readme file you created.
To check out a copy on your workstation you can use the git clone command: git clone git://<address>/git/<name>
After you make changes and commit you can push it back: git push origin master
After you push you will need to go into the Repositories tab to have Redmine update it. There are ways to schedule this or add it into a hook, but I haven't personally set one up.
You should read those resources to understand more about git. I've been using it for a little while and keep learning new things.