Useful Commands for Github (Bonus: Cocoapods)

Create New Repo
echo "# [appName]" >> README.md
git init
git add README.md
git commit -m "[comment]"
git branch -M main
git remote add origin https://github.com/edpenano/[appName].git
git push -u origin master

Add Updated Files
git add -A
git commit -m "note"
git push -u origin master

Pull Files
git pull -u origin master

Bonus: Cocoapods Commands
pod init
modify Podfile
pod install

Troubleshooting: 
pod init -> pod install -> modify Podfile

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.