Hi,
In IT/CS profession, I won't be surprised if you tell me that you came across new technologies every single day at work. Same is the case with me.
Following is the procedure that I followed to convert a bare folder into a repository:
(Assume folder name = "repo")
In IT/CS profession, I won't be surprised if you tell me that you came across new technologies every single day at work. Same is the case with me.
Following is the procedure that I followed to convert a bare folder into a repository:
(Assume folder name = "repo")
- git clone --bare repo repo.git
- Now you can delete or move the repo folder in some other directory
- mkdir repo
- cp repo.git repo/.git
- cd repo
- git config --bool core.bare false
- git checkout master
- Okay! You are ready with a repository on your machine. That was a quick recipe, wasn't it?
- Login to Stash. Get the right permission to mingle around with Stash from your admin.
- In Stash, go inside the project, where you want to create a repository.
- Click on "Create Repository" button. (You can see this button only if you have the right permissions)
- Now, open a terminal on your machine(in which you have created the repository from the above steps).
- cd into the "repo" folder/repository made in the above process.
- Now copy-link on new created repository in stash.
- git remote set-url origin <paste-link>
- git push --all origin
- git push --tags origin
PS: Post your questions. I will surely try to ans and if not me someone else will :P