Comments (3)
Level 19, 20, 23, 26, 34 and more. When starting it should say to name the main branch "master" to avoid these problems
from githug.
Use this command to change the default branch name to master
for all levels. You only need to run this once.
git config --global init.defaultBranch master
githug reset
All levels will now use master
as the default branch.
from githug.
If I run the command
git config --list
I obtain one line reading, for example
init.defaultbranch=main
though it could be master
, or any_name_you_like
. As tested in Linux Debian 13/trixie, as well as from Git Bash in an instance of Windows, this variable's value equally is accessible by
git var GIT_DEFAULT_BRANCH
Thus I think this might resolve githug's problem (on some OSes/setups) with questions 4, 16, 19, 20, 23, 26, 34, etc. so far "patched locally" running git branch -m master
: i) read out its value from the host, and eventually ii) let githug
set up the principal branch with this name (by default). This edit of the code base would provide enough modernization to warrant the update to 0.6.0 suggested in #345.
To me, this were more promising than to edit the hints to the corresponding questions in line of (for instance level 4/file commit.rb
):
hint do
puts "You must include a message when you commit. If not working, adjust the branch's name by `git branch -m master`."
end
from githug.
Related Issues (20)
- Level 10 wrong number off files to be committed
- Can I switch to a specific level? HOT 1
- Scoop安装失败 HOT 1
- GitHug gem on rubygems.org is extremely outdated!
- Several levels don't recognize default branch not named `master` HOT 1
- Level 28, behaving not as expected
- Stage 14 not accepting the answer even though it's presumably correct HOT 2
- Change delete branch hint
- Level 4 not working as expected in Ubuntu 18.04 HOT 4
- Support using GitHug in the classroom HOT 1
- DISCUSSION: New level-set branch based on Git Immersion by Jim Weirich HOT 1
- Enhance Dockerfile classroom functionality
- Potential issue in checkout_tag.rb (level 34)
- Problem in level 37
- Githug doesnt work HOT 3
- level 28 cannot pass HOT 2
- will there be an update to rubygem? HOT 10
- git switches branches but the directory remains the same
- trava_format,celulr
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from githug.