element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Essentials
  • Learn
  • Learning Center
  • Essentials
  • More
  • Cancel
Essentials
Forum GIT course
  • Forum
  • Documents
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Essentials to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • Replies 38 replies
  • Subscribers 1018 subscribers
  • Views 7599 views
  • Users 0 members are here
Related

GIT course

dougw
dougw over 5 years ago

It might be useful to present an introduction and basic user guide to GIT repository …..

  • Sign in to reply
  • Cancel

Top Replies

  • beacon_dave
    beacon_dave over 5 years ago +9
    This free eBook download via Apress Open may be of interest in the meantime ? Pro Git Authors Scott Chacon Ben Straub https://link.springer.com/book/10.1007%2F978-1-4842-0076-6
  • balearicdynamics
    balearicdynamics over 5 years ago in reply to beacon_dave +4
    I oblige all my collaborators to download and read this book. That is also on my Kindle
  • beacon_dave
    beacon_dave over 5 years ago in reply to beacon_dave +4
    Springer Link also have a free textbooks 'Covid 19 package' on the go at the moment: https://link.springer.com/search?package=mat-covid19_textbooks&showAll=true Amongst others, there are some books on…
Parents
  • balearicdynamics
    balearicdynamics over 5 years ago

    There are two points that I saw many developers always ignore or not consider in Gip version control.

     

    1. Repository push should NOT happen only when your program works but when you make a meaningful step

    2. How to manage different branches.

     

    And, IMHO, these are the two most important possibilities from Git to keep a serious development history of your job.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Cancel
  • jomoenginer
    jomoenginer over 5 years ago in reply to balearicdynamics

    Well, I think what you are describing are two separate things. Git is just a tool used to move code to a repo and such.

     

    Branch strategy is an entirely separate topic.  Branching depends on the development environment and the branch strategy.  Most Agile Development encourages pushing changes often to ensure the code is not lost.  However, the idea is to create a development branch and to create feature branches for particular issues where a developer works from and can push changes to.   Once the code is ready to be pushed to the development branch, a code review would be created and the code goes under scrutiny.  In some instances code analysis would take place as the code is pushed to ensure there are no syntax issues or spacing issues as in Python. Once the code has gone through a code review, then a pull request would be mode to merge the code into the development branch.   This continues until there is a release set and all fhe changes are properly merged into the development branch where the code is merged into the master branch.  In some cases a release branch would be made and only select changes are checked into the master branch.  This is just one scenario and could take many forms.

     

    There are many tools to keep repos in such as GiHub, GitLab, Bitbucket and the old ClearCase.

     

    This is a deep topic, and could git nasty.

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • Cancel
  • Jan Cumps
    Jan Cumps over 5 years ago in reply to jomoenginer

    We do almost as you explain, except the review.

    That doesn't happen before the pull request, but as part of the pull request approval.

    If the review passes, the reviewer approves the pull request.

    If not, they use the code comment functionality in devops and reject.

     

    The developer can then fix code in the existing feature branch. Those commits get automatically added to the pull request when pushed.

    The approval count is reset and the review can proceed...

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • jomoenginer
    jomoenginer over 5 years ago in reply to Jan Cumps

    I've been in environments where Crucible was used for code review before the pull request to keep the pull request clean.

     

    Also, at Intel, the code went through an analyzer and linter when pushed to a branch and would get rejected if there was a failure and everyone assigned to the project got an email of said incident.

     

    But, then again, there are folks that still use SVN over Git.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Cancel
Reply
  • jomoenginer
    jomoenginer over 5 years ago in reply to Jan Cumps

    I've been in environments where Crucible was used for code review before the pull request to keep the pull request clean.

     

    Also, at Intel, the code went through an analyzer and linter when pushed to a branch and would get rejected if there was a failure and everyone assigned to the project got an email of said incident.

     

    But, then again, there are folks that still use SVN over Git.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Cancel
Children
  • Jan Cumps
    Jan Cumps over 5 years ago in reply to jomoenginer

    inspired by the discussion, I'm turning the firmware repo for my dc load into a managed project, with branch policies.

    I've been the only committer for this project and for these situations I just create a master branch with commit rights (all my github repos are currently set up like this).

    But I can create a project with board for issue and pull request management, and fiddle out how branch policies work in git.

    Then switch my local repo over to a development branch ...

     

    Here's the locaton: https://github.com/jancumps/msp432/projects/1

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube