git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Coming from SVN world - need help

From
JBJ. Bakshi <joydeep@infoservices.in>
Date
Jul 13, 2011, 13:00 UTC
Message-ID
<20110713183056.1cde5b61@shiva.selfip.org>
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
Next: Erik Faye-Lund
Message 1 of 4 in “Coming from SVN world - need help”
  1. J. BakshiJul 13, 2011
  2. Erik Faye-LundJul 13, 2011
  3. J. BakshiJul 14, 2011
  4. Ramkumar RamachandraJul 14, 2011

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.