Giter Site home page Giter Site logo

git-tips's People

Contributors

rogerxu avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

git-tips's Issues

git reset --hard HEAD leaves untracked files behind

When I run git reset --hard HEAD, it's supposed to reset to a pristine version of what you pulled, as I understand it. Unfortunately, it leaves files lying around, as a git status shows a big list of untracked files.

How do you tell git "Just bring it back to EXACTLY what was in the last pull, nothing more, nothing less"?

GitHub Training Learning Resources

CI on GitHub

How to do CI on GitHub?

  • Jenkins
    • Pull Request build for specific branch
    • CI build
  • Travis-CI
  • Circle-CI

Feature Branch on Gerrit

How to work with feature branches on Gerrit?

  • How to create feature branch
  • How to verify feature branch
  • How to merge feature branch
  • How to avoid massive changes in code review when merging into master branch

ToDo list:

  • Remove .gitreview on master to avoid merge conflicts

How to download a specific commit from a Git repository

Sometimes we need to download a specific version of a project from a Git repository to do some work like build from source code. If clone the entire repository it will be very slow because we don't need the entire commit history.

GitHub provides a download as zip service for a specific version which meets our needs. But how about a Git repository accessed via SSH?

Pull Request on GitHub

  • Deal with large changes in a pull request
  • Force push
  • Rebase
  • Cherry-pick
  • Squash
  • Backend + frontend code in same feature branch or separate ones?
  • Resolve merge conflicts

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.