Open whatupfoo opened 4 years ago
How long will this githubschool/tiger-king repository be around after the class? ā²ļø
Hey @bearntrail - I believe it'll be here until our team decides it's time to clean up and it's rare for us to do so. But if you want to make sure you always have this, you can always fork this to your personal account to keep a copy.
$ git checkout -b nchalakova -add-caption error: unknown switch `a'
hey @nchalakova š So this is caused by the extra space after nchalakova
- if this removed, it would solve the issue
Is the commit comment permanent or can it be modified?
Hey @cousinnu š Good question - There are ways to modify commits, but there are some caveats to that since every single person on your team will share the same history. Tomorrow, if we get to advanced stuff, we can look more into it changing commit history.
I have an issue: Nelly@Nelly-HP-PC MINGW64 /c/tiger-king/_posts (nchalakova) $ git add 0000-01-11-nchalakova.md
Nelly@Nelly-HP-PC MINGW64 /c/tiger-king/_posts (nchalakova) $ git status On branch nchalakova nothing to commit, working tree clean
Hi @nchalakova - I think I have to see the previous history to know what you have nothing to commit. Either you didn't make any changes, or maybe forgot to save? There could be a lot of reasons, if you don't mind, can you share the previous commands you did before these couple ones? Thanks!
This is the command to run
history > file_name.txt
If anyone is interrested, here is the log of my git session as I followed along with Rowena.
whoops - reopened.
@mstrelau š Thanks for sharing!
Post any questions you may have here during the training.
Tips Don't forget there are resources on the README file of this repository!
Links
GitHub Flow WIP probot CODEOWNERS file
Common git commands
GitHub Flow that shows two environments (sorry for the crappy visual)
Day to Day Basic Workflow
git checkout master
git pull
Merge conflicts
Try the following exercise and take note of your observations:
git init
touch file1.txt
and add a line of text to itgit add
,git commit -m
ā¹ļø For now, we are going to rule out branch protection settings & pushing to GitHubExercise 1
file1.txt
at the same linegit checkout master
andgit merge branch1
. This mergesbranch1
intomaster
.Answer
Exercise 2
file1.txt
, say on line 2master
branch withgit checkout master
branch1
into master again withgit merge branch1
What happens this time?Answer
Revert
The question asked during the class was: What if you revert a file that has a conflicting line of code with a previous commit?
To demonstrate what I mean, you can try it out:
git init