Skip to content

Instantly share code, notes, and snippets.

@xandrucea
Last active December 20, 2015 04:18
Show Gist options
  • Save xandrucea/6069438 to your computer and use it in GitHub Desktop.
Save xandrucea/6069438 to your computer and use it in GitHub Desktop.
updating pod to new tag
-----------------------
git status
git tag -n
git pull
git pull origin development
git tag -n
git tag [newNumber] -am "comment"
git tag -n
git push
git push --tags
git clone git@[url]:[repoName]
--> goto the specific folder in cloned repo
cp -r [oldNumber] [newNumber]
--> goto newNumber
nano [repoName].podspec
--> change version, add description for new tag, change source to new tag, platform if needed
--> go back to repoName parent folder with git
git status
git add .
git commit -m "comment"
git push
git status
setup git for remote pushes
---------------------------
git config --global user.name "Your Name Here"
git config --global user.email "your_email@example.com"
setup identification without password
curl -s -O \ http://github-media-downloads.s3.amazonaws.com/osx/git-credential-osxkeychain
chmod u+x git-credential-osxkeychain
sudo mv git-credential-osxkeychain \
"$(dirname $(which git))/git-credential-osxkeychain"
git config --global credential.helper osxkeychain
git remote add origin git@[labaschUrl]:[projectname]
// also add project to gitolite and push
for the first push, always use "git push origin master"
basics
------
git status
git diff
git add . // remove files from stage: git reset HEAD <file>
git commit -m "commit message"
git commit -am "commit message"
git status
git push
git pull
after pulling and merging commit again to save in local repository
from creation till the end
--------------------------
create a file
git add .
git commit -am "commit message"
git push // push files to your github repository
-----> if user data hasn't been set, input
git pull // get new files
git remote add upstream https://github.com/schokocappucino/gitjetzt.git
git fetch upstream
git branch -va // see all branches
git merge upstream/master // merge upstream with master branch
get projects from github
------------------------
git clone <CLONE URL>
add files to ignore list
------------------------
vi. gitignore
turn on color for shell
-------------
git config --global color.ui auto
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment