Error :
remote: error: By default, updating the current branch in a non-bare repository
Solution:
git config –bool core.bare true
git software versioning.
Error :
remote: error: By default, updating the current branch in a non-bare repository
Solution:
git config –bool core.bare true
Firstly we need to create a project.
Then init –BARE git rep, which is not consist of Source Files.
1 |
git --bare init proje.git |
1 2 |
$pwd /rep/proje.git |
The user can Clone our BARE repository
1 |
git clone git@xx.com:/rep/proje.git |
Enter the cloned dir, Then create a new file
1 2 3 4 |
touch kutayzorlu.txt & echo "|" >> kutayzorlu.txt git add kutayzorlu.txt git commit -m " All added , new file created " |
Or you can add ALL file types with
1 2 3 |
git add . git add --all # this 2 command can selectable. |
How to add Remote
1 2 3 4 5 6 7 |
$git remote add yukleyici git@xx.com:/rep/proje.git # how to push remote $git push -u yukleyici master Password > ????? |
If the user from another machine wants to use codes committed , should write these commands.
1. Clone project with Username Password
2. After create new files,
3. git add .
4. git commit -m “”
5. git push -u kutayzorlu master
if you want to get changes you need to pull
6. git pull -u kutayzorlu