Coming from SVN world - need help
From: J. Bakshi <hidden>
Date: 2016-06-15 22:51:35
Dear list,
Greetings !!
I have come from SVN world and totally new to GIT. I have managed to set gitweb and git; based on https:// along with authentication ( both for read and right ). And now I like to do the rest of the svn related thing in GIT. Just see the script below. This script first create an empty repo, built the structure; then checkout in a directory to map trunk with it and add contents to the repo.
```````````````````
svnadmin create ${svn_path}/<repo>
svn mkdir file:///${svn_path}/<repo>/trunk \
file:///${svn_path}/<repo>/tags \
file:///${svn_path}/<repo>/branches \
-m "creating repo structure"
# map a directory with trunk
cd mydir
mydir $> svn --username ${admin_svn} --password ${admin_svn_pass} co file:///${svn_path}/${name_site}/trunk ./
#add and commit
mydir $> svn add dir1 dir2
##commit
mydir $> svn commit -m "adding dir1 dir2"
mydir $> svn up
````````````````````````````````
And now the issues when I am trying to do the same with git
[1] git init ${git_path}/<repo>.git >>> ok , it is working
[2] Problem with mapping a dir with this repo
mydir $> git --username <username> --password <password> clone file:///${git_path}/<repo>.git
Not working --username and --password .
Also git clone file:///${git_path}/<repo>.git creates a folder <repo>.git where I like map the working directory with the contents of <repo>.git
[3] git commit -m also not commit into master.
Could any one please give me some clue ?
Thanks