GithubHelp home page GithubHelp logo

git-simple-steps's Introduction

Git Simple Steps For Everyday Development

Here's some very quick steps I gathered for setting up Git, getting up and running with your project from updating, creating branch, checking out branches, merging branches, merge issues, pull issues, pushing branches to repository, etc.

  • git clone - clone branch

  • git pull origin - updates

  • git checkout -b - create new branch

  • git add . - add files to stage

  • git commit -m "" - commit files with messages

  • git commit --all -m "message here" - Merge pain issues, merge all and commit all.

  • git merge "name of dev branch" - merge new branch with dev

  • git push origin "name of branch" - push changes to repo

  • git push -f origin master - If you confirm that your new code is all fine. Where -f stands for "force commit" (or if on another branch, git push -f master)

  • git stash - save work

  • git stash apply - add saved work to new branch if neeeded

  • git reset --merge If you've decided that whatever merge you were trying to do was a bad idea after all, you can put things back to normal

  • git fetch --all - git fetch downloads the latest from remote without trying to merge or rebase anything.

  • git reset --hard origin/master - git fetch downloads the latest from remote without trying to merge or rebase anything.

*** Remove git ignore and other unneccessary files that you dont wanna commit in git status que: ***

The series of commands below will remove all of the items from the Git Index (not from the working directory or local repo), and then updates the Git Index, while respecting git ignores. PS. Index = Cache

First:

  • git rm -r --cached .
  • git add .

Then:

  • git commit -am "Remove ignored files"

git-simple-steps's People

Contributors

ajonesb avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

mlralcaide

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.