Browsed by
Tag: git

How to remote git repository from xCode project completely and create new repository

How to remote git repository from xCode project completely and create new repository

Git keeps all of its files in the .git directory. Just remove that one and init again. If you can’t find it, it’s because it is hidden. In Windows 7, you need to go to your folder, click on Organize on the top left, then click on Folder and search options, then click on the View tab and click on the Show hidden files, folders and drives radio button. On a Mac OS: Open a Terminal (via Spotlight: press CMD + SPACE, type terminal and press Enter) and do this command: defaults write com.apple.finder…

Read More Read More

Git commands

Git commands

1 . Know remote repository name git config –get remote.origin.url 2 . Remote Branch current git branch 3 . Remote branch all git branch –all 4 . Git initialization git init (you need to do it first to run any git command) 5 . Add all code or changes git add –all 6 . Git commit git commit -m “commit name” 7 . Git remote repository add git remote add origin “url” 8. Git push git push origin master (master…

Read More Read More

Github “fatal: remote origin already exists”

Github “fatal: remote origin already exists”

As the error message indicates, there is already a remote configured with the same name. So you can either add the new remote with a different name or update the existing one if you don’t need it: To add a new remote, called for example github instead of origin (which obviously already exists in your system), do the following: $ git remote add github git@github.com:ppreyer/first_app.git Remember though, everywhere in the tutorial you see “origin” you should replace it with “github”. For example $ git push origin master should now…

Read More Read More