Cocoapods And Git
Cocoapods
- Uninstall: 
pod deintegrate - Install: 
pod install - Update: 
pod update - Clear all pods’ cache: 
pod cache clean --all - Initialize PodFile: 
pod init - List all pods: 
pod list - Update Pod Repo: 
pod repo update - Setup: 
pod setup - Build cocoapod: 
pod lib lint --no-clean 
Get help for a command: --help. Example: pod search --help.
Verbose output flag: --verbose
Git
Scripts
Push to Existing Git Repo
git add .git commit -m "Your message for commit"git push
Revert to previous commit
- Hard Delete All Current Changes: 
git reset --hard - Save Current Work and then Revert: 
 
git stash || git reset --hard || git stash pop 
Undo a git merge that hasn’t been pushed
git reset --hard ORIG_HEAD
Commands
//$branch_name is a branch name
- Switch branch: 
git checkout $branch_name - Merge another branch into the current: 
git merge $branch_name - Pull new changes from remote: 
git pull - Remove a file from the working tree: 
git rm $file_name - List all branches: 
git branch -a