Add file to staging area:
git add <filename>
Add all in current dir/subdir to staging area (does not stage delete-changes, use -u for that, see below):
git add .
After renaming a folder all the "new" files were unstaged while the "old" appeared as deleted. Staging with “git add .” doesn't work here. What works is:
git add -u
Shortcut for 'git add . ; git add -u':
git add -A
Commit staged changes and put message directly on command line:
git commit -m "My commit message"
Shortcut to add all changes (of already tracked files!!) to staging area and do commit:
git commit -am "My commit message"
(does not work for untracked files! Need to run 'git add -...' for that...!)
List branches:
git branch
Switch branch:
git checkout <branch to switch to>
Create and switch to new (local) branch:
git branch <new branch>
git checkout <new branch>
Create branch (locally) and switch to new branch in one command:
git checkout -b <newbranch>
Delete local branch:
git branch -d <tobedeletedbranch>
Delete remote branch:
git push origin:<tobedeletedbranch>
Push new branch to remote repository:
git push –u origin <new branch>
Merge branch into current branch:
git merge <branch to be merged into current branch>
Show ignored files:
git ls-files –others –i exclude-standard
Get remote branch from someone ( = create new local branch with remote branch as starting point):
git fetch origin
git checkout --track origin/<bname>
or (difference?)
git checkout -b <bname> origin/<bname>
(syntax: 'git checkout -b <new name> <starting point> )
List Git configuration
git config --list
Subversion is deprecated, new projects should be hosted on GitLab!
https://camplinux.in.tum.de/svn/$REPOSITORY/trunk
You need your domain credentials to login.
(access for everyone involved with CAMP)
(access only for the camp staff)
(access for everyone involved with CAMP)
https://camplinux.in.tum.de/svn/svn/trunk/doc/onlineCollaboration/papers
https://camplinux.in.tum.de/svn/campintern/trunk/theses
https://camplinux.in.tum.de/svn/svn/trunk/matlab
https://camplinux.in.tum.de/svn/svn/trunk/src/libs
https://camplinux.in.tum.de/svn/svn/trunk/src/apps
https://camplinux.in.tum.de/svn/svn/trunk/doc
https://camplinux.in.tum.de/svn/svn/trunk/src
svn: Can't recode string
What happened?
export LANG=en_US
or any other locale that can represent the particular character.
svn2git https://camplinux.in.tum.de/svn/svn/trunk/src/apps/PRJECT_NAME --no-minimize-url --rootistrunk --authors svn2git_author_map.txt -v --user SVN_USER_NAME