Git setup - mipidisaster/miLibrary GitHub Wiki
This page describes how to get started with using this library
To clone this repository, use the following command:
git clone https://github.com/mipidisaster/Library.git
If you want it in the current directory, add .
to the end of the string
git add .
git add <directory>
Above will add any changes from the "workspace" (local area) to the "index"
git commit -m "some changes have been made"
Will move the contents of the "index" to the "local repository"
git tag -a <tag number> -m "my tagged version"
git fetch --tags
Will add a tag to the current commit within the "local respository"...i think. The fetch command, will pull any new tags added via webpage into remote
git push
git push origin <tag number>
Will move the contents of the "local repository" to the "remote repository" (in this case GitHub), account deatils would be required for this. The push origin, will share the tag with the "remote repository" (for note, the origin is the remote repository)
git checkout <branchname>
git checkout -b <new-branchname>
The above comments will link the current workspace/local repository to the desired branchname. '-b' will create the specified branch
git status
Provides the status of the current repository, when compared with the Master
or which ever version has been cloned
git diff
Similar to above, however shows any changes in the files
git checkout
git checkout <tag name>
Will update the "workspace" with either the contents of "index", or revert back to the contents as per <tag name>
Suggestions on how to setup Git - https://guides.github.com/
Further guides - https://docs.github.com/en
Pro Git book - https://git-scm.com/book/en/v2 (a bit difficult to read)
Others - https://guides.codepath.com/ios/Using-Git-with-Terminal