Skip to content

Instantly share code, notes, and snippets.

@pratos
Last active September 19, 2017 11:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pratos/94774e9ba169e4cf032d4e176b8478b9 to your computer and use it in GitHub Desktop.
Save pratos/94774e9ba169e4cf032d4e176b8478b9 to your computer and use it in GitHub Desktop.
Git Common - AthenaSight

General git commands_

git clone <git-clone repository link>
------------or----------------------
git remote add origin https://github.com/user/repo.git

git add <folder/filename>
git commit -m "Comment"
git status
git checkout -b <name>

#Delete github repo from local
git branch -d branch_name
  • Adding new git repository to local

    • git init
    • git remote add origin <name> <url>
    • git pull <url:ssh> <branch-name>
    • git add .
    • git commit -m "Comment"
    • git push --set-upstream origin master
  • Create a pull request and Rebase and Squash for new folder structure to appear in the master.

  • Delete local git branch

    git branch -d <local-branch>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment