| 2020-10-26 |
| ← Tawonga left | 00:02 |
| ← tiin57 left | 00:02 |
| ← finalbeta left | 00:05 |
| ← yohnnyjo1 left | 00:06 |
| → tiin57 joined | 00:06 |
| ← edsan left | 00:09 |
| ← royal_screwup21 left | 00:13 |
| → bambanx joined | 00:13 |
| → royal_screwup21 joined | 00:13 |
| → gschanuel7 joined | 00:16 |
| ← gschanuel left | 00:20 |
| gschanuel7 → gschanuel | 00:20 |
| ← calcul0n left | 00:23 |
| → santagauss joined | 00:26 |
| → impermanence joined | 00:26 |
| ← tiin57 left | 00:33 |
| ← vdamewood left | 00:35 |
| ← cd left | 00:36 |
| → tiin57 joined | 00:36 |
| → sgn1 joined | 00:38 |
| → yohnnyjo1 joined | 00:38 |
| ← sgn left | 00:39 |
| → Technodrome joined | 00:39 |
| ← royal_screwup21 left | 00:42 |
| → royal_screwup21 joined | 00:42 |
| → marslander joined | 00:43 |
| ← m0viefreak left | 00:43 |
| sgn1 → sgn | 00:44 |
| ← yohnnyjo1 left | 00:45 |
| ← bambanx left | 00:45 |
| ← marslander left | 00:46 |
| ← royal_screwup21 left | 00:47 |
| → sgn1 joined | 00:50 |
| ← sgn left | 00:52 |
| → heyitsrama joined | 00:52 |
| → justsomeguy joined | 00:55 |
| ← heyitsrama left | 01:02 |
| ← tiin57 left | 01:02 |
| → tiin57 joined | 01:06 |
| → royal_screwup21 joined | 01:14 |
| → yohnnyjo1 joined | 01:15 |
| ← royal_screwup21 left | 01:20 |
| ← tiin57 left | 01:32 |
| → tiin57 joined | 01:36 |
| BlessJah_ → BlessJah | 01:40 |
| apetresc → apetresc[m] | 01:41 |
| apetresc[m] → apetresc | 01:42 |
| → royal_screwup21 joined | 01:44 |
| ← astronavt left | 01:46 |
| → astronavt joined | 01:46 |
| ← royal_screwup21 left | 01:48 |
| ← yoh left | 01:49 |
| ← AnAverageHuman left | 01:50 |
| ← duderonomy left | 01:56 |
| → AnAverageHuman joined | 01:56 |
| → duderonomy joined | 01:57 |
| ← impermanence left | 02:00 |
| → vicfred joined | 02:01 |
| ← tiin57 left | 02:02 |
| ← nomadicmathmo left | 02:03 |
| → nomadicmathmo joined | 02:03 |
| ← nomadicmathmo left | 02:06 |
| → tiin57 joined | 02:06 |
| → nomadicmathmo joined | 02:06 |
| → mimi_tom joined | 02:09 |
|
mimi_tom
| hi, I accidently did `git reset HEAD~3 .` from my branch. Can someone please tell me how I can able to undo that command? | 02:09 |
| → drbean joined | 02:11 |
|
BtbN
| reset again to where you were before | 02:12 |
|
mimi_tom
| but when I reset to my latest commit, All my files are unstaged | 02:14 |
| ← Gurkenglas left | 02:15 |
| → Shentino joined | 02:16 |
|
BtbN
| If you have unstaged changes, you'll have to add them again | 02:16 |
|
| if you don't have any changes, just do a hard reset. | 02:16 |
|
mimi_tom
| you mean like `git reset --hard LATEST_COMMIT_HASH` this? | 02:18 |
| ← yohnnyjo1 left | 02:19 |
| ← F0rTex left | 02:24 |
| → F0rTex joined | 02:25 |
| ← cbreak left | 02:25 |
| → cbreak joined | 02:28 |
| ← tiin57 left | 02:33 |
| ← bin_bashtober left | 02:34 |
| → bin_bash joined | 02:34 |
| → kalbasit_ joined | 02:35 |
| → impermanence joined | 02:35 |
| → tiin57 joined | 02:36 |
| → heyitsrama joined | 02:37 |
| → blahboybaz joined | 02:40 |
| ← Technodrome left | 02:43 |
| ← santagauss left | 02:46 |
| → fikran[m] joined | 02:47 |
|
fikran[m]
| Hi all. I accidently committed a binary file. Is there a way to uncommit it? I am the sole owner/maintainer/user of this repo? | 02:48 |
| ← blahboybaz left | 02:49 |
| ← crose left | 02:53 |
| ← Shentino left | 03:02 |
| ← irc_user left | 03:02 |
| ← tiin57 left | 03:03 |
| ← heyitsrama left | 03:04 |
| → tiin57 joined | 03:06 |
| lagothrix → Guest12762 | 03:14 |
| ← Guest12762 left | 03:14 |
| → lagothrix joined | 03:14 |
| → Shentino joined | 03:14 |
| ← sudoforge left | 03:25 |
| ← tiin57 left | 03:33 |
| → tiin57 joined | 03:36 |
| ← nomadicmathmo left | 03:38 |
| → nomadicmathmo joined | 03:38 |
| ← stenno1 left | 03:43 |
| → notnatebtw joined | 03:44 |
| → stenno1 joined | 03:44 |
| → zebrag joined | 03:46 |
| ← inkbottle left | 03:46 |
|
Hello71
| !undo | 03:47 |
|
gitinfo
| [!fixup] So you lost or broke something or need to otherwise find, fix, or delete commits? Look at https://sukima.github.io/GitFixUm/ for full instructions, or !fixup_hints for the tl;dr. Warning: changing old commits will require you to !rewrite published history! | 03:47 |
| ← notnatebtw left | 03:51 |
| → ferdna joined | 03:54 |
| → yohnnyjo1 joined | 03:59 |
| ← Hello71 left | 04:02 |
| ← nomadicmathmo left | 04:02 |
| ← tiin57 left | 04:02 |
| → Hello71 joined | 04:03 |
| → nomadicmathmo joined | 04:03 |
| ← maxwilliamson left | 04:05 |
| → maxwilliamson joined | 04:06 |
| → tiin57 joined | 04:06 |
| ← Lyqyd left | 04:16 |
| → powerh0use joined | 04:17 |
| → pwerhouse joined | 04:17 |
| ← powerh0use left | 04:18 |
| ← pwerhouse left | 04:18 |
| → powerh0use joined | 04:18 |
| ← donofrio left | 04:19 |
| ← geosmile left | 04:22 |
| → sudoforge joined | 04:24 |
| ← AnAverageHuman left | 04:30 |
| → cd joined | 04:31 |
| ← tiin57 left | 04:32 |
| → heyitsrama joined | 04:34 |
| → tiin57 joined | 04:36 |
| ← heyitsrama left | 04:38 |
| ← sgn1 left | 04:40 |
| ← ojdo left | 04:44 |
| ← madewokherd left | 04:49 |
| → sybariten joined | 04:50 |
|
sybariten
| Hey y'all | 04:50 |
| → ojdo joined | 04:51 |
|
sybariten
| here's a question that i would guess gets asked now and then: how does git handle (soft)links? I have a dir in one place, and i would like to have those files appear in a repo in another place.... transparently | 04:51 |
| → Guest20 joined | 04:52 |
| → Kaisyu joined | 04:52 |
| → sgn joined | 04:53 |
| ← tiin57 left | 05:02 |
| → tiin57 joined | 05:05 |
| → nephyrin_ joined | 05:08 |
| ← nephyrin left | 05:09 |
| → heyitsrama joined | 05:12 |
| ← heyitsrama left | 05:17 |
| ← nephyrin_ left | 05:21 |
| → nephyrin joined | 05:22 |
| ← kupi left | 05:25 |
| → OnkelBlade joined | 05:30 |
| ← tiin57 left | 05:32 |
| → tiin57 joined | 05:35 |
| → heyitsrama joined | 05:44 |
| → mightyjens joined | 05:45 |
| ← heyitsrama left | 05:49 |
| → Hounddog joined | 05:50 |
| ← tiin57 left | 06:02 |
| ← Aelius left | 06:05 |
| → tiin57 joined | 06:06 |
| ← sudoforge left | 06:06 |
| → Aelius joined | 06:07 |
| ← powerh0use left | 06:11 |
| → powerh0use joined | 06:12 |
| ← thiago left | 06:18 |
| ← Shentino left | 06:27 |
| → Shentino joined | 06:27 |
| ← gordonfish left | 06:32 |
| ← tiin57 left | 06:32 |
| ← orbyt_ left | 06:33 |
| ← powerh0use left | 06:34 |
| → tiin57 joined | 06:36 |
| ← Guest20 left | 06:36 |
| ← BSaboia left | 06:37 |
| ← dodobrain left | 06:39 |
| ← mat001__ left | 06:39 |
| ← gast0n left | 06:42 |
| ← lankanmon_ left | 06:44 |
| → finalbeta joined | 06:44 |
| ← stenno1 left | 06:47 |
| → stenno2 joined | 06:47 |
| ← arcatech left | 06:50 |
| ← nomadicmathmo left | 06:51 |
| → chele joined | 06:54 |
| ← tiin57 left | 07:03 |
| ← unluckyshrubbery left | 07:03 |
| ← smallville7123 left | 07:04 |
| → tiin57 joined | 07:06 |
| ← nemesit|znc left | 07:07 |
| → nemesit|znc joined | 07:08 |
| ← vicfred left | 07:31 |
| → teclator joined | 07:31 |
| ← tiin57 left | 07:33 |
| ← cd left | 07:33 |
| → LetoThe2nd joined | 07:36 |
| → tiin57 joined | 07:36 |
|
osse
| sybariten: git handles the links themselves | 07:40 |
| ← txtsd left | 07:41 |
|
osse
| another clone will contain a link | 07:41 |
| → KnoP joined | 07:41 |
| → rfuentess joined | 07:45 |
| → Haohmaru joined | 07:45 |
| → Mattiaslndstrm joined | 07:47 |
| ← Betal left | 07:54 |
| ← hussam left | 07:54 |
| → Technodrome joined | 08:01 |
| ← tiin57 left | 08:03 |
| → tiin57 joined | 08:05 |
| → nomadicmathmo joined | 08:06 |
| → p-core joined | 08:07 |
| ← sgn left | 08:08 |
| nitrix-or-treat → nitrix | 08:10 |
| ← blowry left | 08:10 |
| → blowry joined | 08:10 |
| ← Goplat left | 08:12 |
| → jnavila joined | 08:14 |
| → santagauss joined | 08:17 |
| ← nomadicmathmo left | 08:26 |
| ← Mattiaslndstrm left | 08:31 |
| → venmx joined | 08:32 |
| ← tiin57 left | 08:32 |
| → nomadicmathmo joined | 08:33 |
| → oxymoron93 joined | 08:34 |
| ← hnOsmium0001 left | 08:35 |
| → tiin57 joined | 08:36 |
| ← nomadicmathmo left | 08:37 |
| → unluckyshrubbery joined | 08:38 |
| ← theoceaniscool left | 08:38 |
| ← bket left | 08:38 |
| → lankanmon joined | 08:39 |
| ← blowry left | 08:44 |
| → blowry joined | 08:45 |
| → PJBoy joined | 08:48 |
| → rcoote joined | 08:48 |
| ← mightyjens left | 08:49 |
| → mightyjens joined | 08:50 |
| ← drbean left | 08:54 |
| ← blowry left | 08:55 |
| → blowry joined | 08:56 |
| ← OnkelBlade left | 08:57 |
| ← tiin57 left | 09:03 |
| → tiin57 joined | 09:06 |
| ← webmariner left | 09:07 |
| → bket joined | 09:13 |
| → dodobrain joined | 09:16 |
| → fstd_ joined | 09:21 |
| ← fstd left | 09:25 |
| fstd_ → fstd | 09:25 |
| ← blowry left | 09:25 |
| → blowry joined | 09:25 |
| → vdamewood joined | 09:26 |
| ← tc424 left | 09:31 |
| → txtsd joined | 09:32 |
| ← tiin57 left | 09:32 |
| → sgn joined | 09:34 |
| → tiin57 joined | 09:36 |
| → smallville7123 joined | 09:46 |
| → hussam joined | 09:50 |
| → Guest20 joined | 09:51 |
| → rsx joined | 09:51 |
| ← ferdna left | 09:51 |
| → feriman joined | 09:54 |
| ← p-core left | 09:56 |
| ← umask077 left | 09:56 |
| ← smallville7123 left | 09:57 |
| → shtrb joined | 09:58 |
|
shtrb
| can someone exaplain in simple words what is a "stale checkout" in the warning "a stale submodule checkout will remain in the old location, removing the old directory is only safe when it uses a git file" | 09:59 |
| → umask077 joined | 09:59 |
| ← umask077 left | 09:59 |
| → umask077 joined | 10:00 |
| ← umask077 left | 10:00 |
| → umask077 joined | 10:01 |
| → smallville7123 joined | 10:01 |
| ← tiin57 left | 10:02 |
| → tiin57 joined | 10:06 |
| → Mattiaslndstrm joined | 10:14 |
| → aliss joined | 10:29 |
| → calcul0n joined | 10:29 |
| ← tiin57 left | 10:32 |
| ← tilpner left | 10:33 |
| → tilpner joined | 10:33 |
| ← justsomeguy left | 10:35 |
| → jlevon joined | 10:36 |
| → tiin57 joined | 10:36 |
|
jlevon
| is it possible to get git fetch to fetch refs other than the default for submodules? | 10:36 |
|
| --recurse-submodules with a supplied refspec does *not* do so | 10:37 |
| → OnkelBlade joined | 10:42 |
| ← feriman left | 10:45 |
| → shivam_ joined | 10:45 |
| → andreas303 joined | 10:46 |
| ← Guest20 left | 10:48 |
| → spiri joined | 10:52 |
| → jeso joined | 10:56 |
| ← g00s left | 11:00 |
| ← jeso left | 11:01 |
| ← tiin57 left | 11:02 |
| → kerframil joined | 11:03 |
| → Guest20 joined | 11:03 |
| ← Technodrome left | 11:04 |
| → SerialSmile joined | 11:05 |
| → tiin57 joined | 11:06 |
| → dodobrain_ joined | 11:08 |
| → Laxator2 joined | 11:09 |
| → feriman joined | 11:11 |
| ← dodobrain left | 11:11 |
| → Guest1430 joined | 11:13 |
| ← smallville7123 left | 11:14 |
| gitinfo set mode: +v | 11:14 |
|
Laxator2
| Need to learn about subtrees in git. I am using git version 2.9.5 (can't upgrade, no sysadmin rights). Is there a separate channel for this ? I already looked through the docs I could find on the web. | 11:15 |
| ← Guest1430 left | 11:15 |
|
shtrb
| jlevon, I found using git submodule update --remote --recursive --merge get most of what I need | 11:15 |
| → astrofog joined | 11:15 |
|
shtrb
| that's not what you asked for ,but maybe it will help you | 11:15 |
|
Laxator2
| Thanks, something to look at | 11:16 |
|
jlevon
| thanks, but this is in jenkins git plugin context so it has to be a fetch argument | 11:16 |
| stenno2 → stenno | 11:17 |
|
Laxator2
| It covers submodules. Need to look at that too, but the subtrees specifically are what I am looking for | 11:17 |
| ← jaziz left | 11:18 |
| → royal_screwup21 joined | 11:18 |
| → wrobinson joined | 11:20 |
| ← Skeleswant left | 11:21 |
| → lainon joined | 11:21 |
| → mat001 joined | 11:22 |
|
shtrb
| Laxator2, I was answering to jlevon , sorry for the confusion. | 11:22 |
| ← Tobbi_ left | 11:22 |
| ← wrobinso1 left | 11:22 |
| → Swant joined | 11:23 |
|
Laxator2
| No problem | 11:23 |
| → Tobbi_ joined | 11:23 |
|
jlevon
| shtrb: I also found it that even if remote.origin.fetch is set in .git/config, the submodule update --init doesn't fetch those | 11:23 |
| → donofrio joined | 11:24 |
| Swant → Skeleswant | 11:28 |
| ← lainon left | 11:29 |
| → Anticom joined | 11:32 |
| ← tiin57 left | 11:33 |
| → thblt joined | 11:34 |
|
thblt
| Can git update a submodule's remote config after a change of SUBMODULE.path in .gitmodules? | 11:35 |
| → tiin57 joined | 11:36 |
|
thblt
| ok `git submodule sync` | 11:39 |
| → drbean joined | 11:41 |
| → dka joined | 11:46 |
|
dka
| I am following this tutorial to duplicate a repository: https://docs.github.com/en/free-pro-team@latest/github/creating-cloning-and-archiving-repositories/duplicating-a-repository , after duplicating it, I am cloning my new repo and when I do git status, I have : "On branch 1.4" why ?? | 11:48 |
|
thblt
| dka: This is a github issue, not git. But I guess that's just the default branch of the origin repo. | 11:49 |
|
| Which is relatively uncommon, but not unheard of. | 11:50 |
|
ikke
| dka: What does `git ls-remote --symref origin HEAD ` | 11:51 |
|
| return? | 11:51 |
|
| replace origin with the apropriate remote name | 11:51 |
|
dka
| https://termbin.com/j55f | 11:54 |
|
ikke
| One test to be sure: git ls-remote origin | grep 35e69b87ebec3d23df045fb9193caa30491da5e9 | 11:54 |
| ← astrofog left | 11:54 |
| → amahl_ joined | 11:57 |
| ← spiri left | 11:59 |
| ← hussam left | 12:00 |
| ← thblt left | 12:01 |
| ← tiin57 left | 12:02 |
| → tiin57 joined | 12:06 |
| → clime joined | 12:08 |
| → jeroum joined | 12:09 |
|
jeroum
| hi | 12:09 |
|
gitinfo
| jeroum: hi! I'd like to automatically welcome you to #git, a place full of helpful gits. Got a question? Just ask it — chances are someone will answer fairly soon. The topic has links with more information about git and this channel. NB. it can't hurt to do a backup (type !backup for help) before trying things out, especially if they involve dangerous keywords such as --hard, clean, --force/-f, rm and so on. | 12:09 |
|
jeroum
| i'm actually new to git (version tracking stuff in general) | 12:10 |
|
| what i want is, a way to sync files im working on on different machines | 12:10 |
| ← rustyshackleford left | 12:11 |
|
jeroum
| let's say im working on a project from two different computers, how can i manage them both in sync.. | 12:11 |
|
ikke
| git is not really a file synchronization tool | 12:11 |
|
jeroum
| but there sure must be a way to achieve that right? | 12:12 |
|
osse
| Dropbox? | 12:14 |
|
jeroum
| so i clone one of my repositories to my local machine 1 | 12:15 |
|
| and i do the same with local machine 2 | 12:16 |
|
| then i work some files on lm1.. | 12:16 |
| → bolovanos_ joined | 12:16 |
|
jeroum
| and i commit... | 12:17 |
|
| now when i log into my lm2.. which command do i use to get the updates? | 12:17 |
|
ikke
| yes, constly commit, push, pull --rebase, commit, push, pull --rebase | 12:17 |
|
jeroum
| i see.. thank you ikke | 12:18 |
| ← shivam_ left | 12:19 |
| ← jeroum left | 12:20 |
| → mobidrop joined | 12:20 |
| ← bolovanos_ left | 12:23 |
| → yoh joined | 12:25 |
| → sdwrage joined | 12:31 |
| ← tiin57 left | 12:32 |
| ← royal_screwup21 left | 12:33 |
| ← syd left | 12:33 |
| → royal_screwup21 joined | 12:33 |
| → JTWLUK joined | 12:34 |
| → cdown_ joined | 12:34 |
| → tiin57 joined | 12:36 |
| ← cdown left | 12:37 |
| cdown_ → cdown | 12:37 |
| ← royal_screwup21 left | 12:39 |
| → sysh joined | 12:40 |
| → ssiyad joined | 12:44 |
| ← dionysus69 left | 12:45 |
| → muhaha joined | 12:45 |
| ← freephile left | 12:48 |
| → BSaboia joined | 12:49 |
| → royal_screwup21 joined | 12:49 |
| → Gurkenglas joined | 12:57 |
| ← blowry left | 12:58 |
| → blowry joined | 13:01 |
| ← tiin57 left | 13:03 |
| → tiin57 joined | 13:06 |
| → darkbit joined | 13:06 |
| → pabs3 joined | 13:07 |
| ← amahl_ left | 13:07 |
| → gordonfish joined | 13:07 |
| ← sgn left | 13:08 |
| ← pabs3 left | 13:09 |
| ← blowry left | 13:09 |
| ← Guest20 left | 13:10 |
| → spiri joined | 13:12 |
| → saluri joined | 13:12 |
| → blowry joined | 13:13 |
| ← clime left | 13:15 |
| ← saluri left | 13:17 |
| → amahl_ joined | 13:20 |
| ← blowry left | 13:23 |
| → blowry joined | 13:23 |
| ← HumanG33k left | 13:24 |
| → pabs3 joined | 13:29 |
| → CodeSlingerPaul joined | 13:29 |
| → dodobrain__ joined | 13:29 |
| ← hexnewbie left | 13:29 |
|
pabs3
| one of the objects in one of my packs is corrupt. how can I find out what that object is and what objects reference it? | 13:29 |
|
| and if it turns out that I don't need the object, how can I remove it from the pack? | 13:30 |
| ← dodobrain_ left | 13:30 |
| ← sdwrage left | 13:30 |
| → randomguy090 joined | 13:30 |
| ← RandomGuy90 left | 13:30 |
| ← muhaha left | 13:31 |
|
ikke
| pabs3: did you run git fsck? | 13:32 |
| ← Kaisyu left | 13:32 |
| ← tiin57 left | 13:32 |
| → Amanas joined | 13:33 |
| → sdwrage joined | 13:33 |
| ← blowry left | 13:33 |
| → hexnewbie joined | 13:34 |
| ← dodobrain__ left | 13:34 |
|
pabs3
| I hadn't, just did it now. looks like the pack is very corrupt :( | 13:34 |
| → blowry joined | 13:36 |
| → tiin57 joined | 13:36 |
| ← darkbit left | 13:38 |
| → crose joined | 13:39 |
| ← is_null left | 13:40 |
|
shtrb
| How do I see in reflog when a branch was erased , I got when it was created , but i still didn't see when it was dropped. | 13:40 |
| → nurdie joined | 13:40 |
|
osse
| when a branch is deleted the reflog is too | 13:41 |
|
| In other words, you can't | 13:42 |
| ← drbean left | 13:43 |
| ← sweatsuit left | 13:48 |
| → sgn joined | 13:52 |
| → cd joined | 13:53 |
| ← blowry left | 13:55 |
| ← impermanence left | 13:55 |
| → blowry joined | 13:56 |
| → [twisti] joined | 13:56 |
|
[twisti]
| instead of doing git branch -b bla ; git add -p ; git commit ; git push, i instead did git add -p ; git commit ; git branch -b bla | 13:57 |
| → lucasb joined | 13:57 |
|
[twisti]
| i tried to cherry-pick the commit from my master, but of course it was empty | 13:57 |
|
| any hint on how to recover ? | 13:57 |
| → sweatsuit joined | 13:58 |
|
nedbat
| [twisti]: what is "branch -b"? What did you want to do, and what is wrong now? | 14:01 |
| ← tiin57 left | 14:02 |
|
[twisti]
| nedbat: it creates a new branch and switches to it, its identical to git branch bla ; git switch bla | 14:05 |
|
| err, sorry, not branch, checkout | 14:05 |
| → HumanG33k joined | 14:06 |
| → tiin57 joined | 14:06 |
| ← HumanG33k left | 14:07 |
| → HumanG33k joined | 14:07 |
|
nedbat
| [twisti]: ok, and why do you say of course the commit was empty? Did you make a commit on master? | 14:08 |
|
osse
| [twisti]: you only need to reset master back to before the commit | 14:08 |
|
| https://github.com/Osse/git-stuff/blob/master/git-reset-explanation.txt | 14:08 |
|
[twisti]
| oh duh, thanks osse | 14:08 |
|
| nedbat: yes, that was my problem | 14:09 |
| → Maxattax joined | 14:11 |
| ← tejr left | 14:14 |
| ← yohnnyjo1 left | 14:14 |
| → ghost43_ joined | 14:14 |
| ← ghost43 left | 14:15 |
| ← irrgit left | 14:16 |
| → tejr joined | 14:16 |
| ← SerialSmile left | 14:19 |
| → mat001_ joined | 14:20 |
| ← royal_screwup21 left | 14:21 |
| → royal_screwup21 joined | 14:21 |
| ← calcul0n left | 14:22 |
| → calcul0n joined | 14:23 |
| ← mat001 left | 14:23 |
| ← archpc left | 14:25 |
| ← royal_screwup21 left | 14:26 |
| ← epony left | 14:28 |
| → yohnnyjo1 joined | 14:30 |
| ← yohnnyjo1 left | 14:31 |
| → yohnnyjoe joined | 14:31 |
| ← tiin57 left | 14:32 |
| → thiago joined | 14:32 |
| → Technodrome joined | 14:35 |
| → independent_ joined | 14:35 |
| → tiin57 joined | 14:36 |
| → archpc joined | 14:38 |
| ← independent__ left | 14:38 |
| ← amahl_ left | 14:38 |
| → Betal joined | 14:44 |
| → mat001 joined | 14:45 |
| → nvmd joined | 14:46 |
| ← mat001_ left | 14:49 |
| → hnOsmium0001 joined | 14:53 |
| → roadie joined | 14:54 |
| → royal_screwup21 joined | 14:55 |
| ← k3yp left | 14:56 |
| ← hurfdurf left | 14:57 |
| → k3yp joined | 14:57 |
| → epony joined | 14:59 |
| ← royal_screwup21 left | 15:00 |
| → hurfdurf joined | 15:00 |
| → db_guy joined | 15:00 |
| → gast0n joined | 15:01 |
| ← db_guy left | 15:01 |
| → mat001___ joined | 15:01 |
| → Geminizer joined | 15:02 |
| ← tiin57 left | 15:02 |
|
Geminizer
| Does git have a way to generate an inverse commit, passing in a sha such that "whatever was added in that commit is now removed and what was removed is now re-added" ? | 15:02 |
| ← mat001 left | 15:03 |
|
Habbie
| Geminizer, git revert | 15:03 |
|
| Geminizer, git revert <sha> | 15:03 |
|
Geminizer
| Habbie, thank you | 15:06 |
| ← Jackneill left | 15:06 |
| → tiin57 joined | 15:06 |
| → amahl_ joined | 15:08 |
| → clara97 joined | 15:10 |
| → royal_screwup21 joined | 15:11 |
| → sudoforge joined | 15:12 |
| → mat001 joined | 15:13 |
| ← mat001___ left | 15:16 |
| ← royal_screwup21 left | 15:16 |
| → Jackneill joined | 15:18 |
| → ferdna joined | 15:19 |
|
Geminizer
| is there a way to propagate that reversion to a new branch ? | 15:21 |
|
ikke
| git show -R <hash> if you just want the diff | 15:24 |
|
| Geminizer: checkout the branch, and then do the revert | 15:24 |
| → durham joined | 15:25 |
|
Geminizer
| cool, thank you | 15:26 |
| → royal_screwup21 joined | 15:27 |
| ← luke-jr left | 15:28 |
| → durham_ joined | 15:28 |
| → mat001_ joined | 15:28 |
| → luke-jr joined | 15:29 |
| ← durham left | 15:30 |
| ← mat001 left | 15:31 |
|
shtrb
| thanks osse | 15:32 |
| ← royal_screwup21 left | 15:32 |
| ← tiin57 left | 15:32 |
| → arcatech joined | 15:33 |
| → mat001 joined | 15:34 |
| ← mat001_ left | 15:35 |
| ← austin987 left | 15:36 |
| → tiin57 joined | 15:36 |
| → nomadicmathmo joined | 15:37 |
| → dimi1947 joined | 15:38 |
| ← OnkelBlade left | 15:40 |
| ← KnoP left | 15:43 |
| ← arcatech left | 15:44 |
| → PyR3X joined | 15:44 |
|
PyR3X
| what is the best way to create a template repository and base other projects off it and being able to get updates from it? It seems submodules aren't able to be made at the root level of another project? | 15:45 |
|
ikke
| correct | 15:45 |
|
| Git does not really support something like that | 15:45 |
| → uniminin joined | 15:46 |
|
PyR3X
| what is the best option for something like this? | 15:47 |
| ← uniminin left | 15:47 |
| → uniminin joined | 15:48 |
| ← uniminin left | 15:49 |
| → austin987 joined | 15:49 |
| → uniminin joined | 15:49 |
| ← uniminin left | 15:50 |
| → unihernandez22 joined | 15:51 |
|
ikke
| Good question | 15:51 |
| → uniminin joined | 15:51 |
| → durham joined | 15:51 |
|
dimi1947
| I suppose..if I understand it corretly...when I change branch and stash changes(in master branch for example)..the changes will still be there when I swith to master again at a future time...correct? | 15:51 |
| ← oxymoron93 left | 15:51 |
|
ikke
| What you could do is to add the template repo as a remote, fetch from it, and squash any updates in (and keep track of what commit was last squashed in) | 15:51 |
| ← uniminin left | 15:52 |
|
ikke
| If you stash changes, the changes are stored as a stash, and remain there, until you pop the stash again | 15:52 |
| → mat001_ joined | 15:52 |
|
ikke
| and that could be done on any branch | 15:52 |
| → orbyt_ joined | 15:53 |
| ← durham_ left | 15:53 |
| ← unihernandez22 left | 15:54 |
| → sgn1 joined | 15:54 |
|
PyR3X
| I've done a lot of work to create a project template (gradle plugins preconfigured, buildSrc, READMEs, etc) that all exist in the project root. For new projects I basically want to clone this project and start making changes. But if I update the original repo, I want to be able to pull those changes in from the second project. My original idea was to make the first repo a submodule of the second | 15:54 |
|
| project, but that would require me to add it to the root directory which I can't. | 15:54 |
|
ikke
| Correct | 15:55 |
|
| submodules are separate projectsd, and the files are managed separately | 15:55 |
| → mat001__ joined | 15:55 |
|
ikke
| One solution (but kind of limited to unix) is to use symlinks back to the submoduel | 15:56 |
|
| submodule* | 15:56 |
| → mat001___ joined | 15:56 |
| ← mat001 left | 15:56 |
|
PyR3X
| hmmm | 15:57 |
| ← sgn left | 15:57 |
| → heyitsrama joined | 15:57 |
| → arcatech joined | 15:57 |
|
PyR3X
| I guess it's kind of like a forked repo on GitHub. Forking on GitLab though requires a different group or namespace which is a problem | 15:57 |
|
| https://medium.com/@smrgrace/having-a-git-repo-that-is-a-template-for-new-projects-148079b7f178 | 15:58 |
|
| I guess this kind of works? | 15:58 |
|
ikke
| A fork is basically just a clone in that regards | 15:58 |
| ← mat001_ left | 15:59 |
|
ikke
| One time forking / cloning is easy, but getting updates afterwards while having your own changes on top of that is more difficult | 15:59 |
| ← dimi1947 left | 15:59 |
| ← mat001__ left | 16:00 |
| ← Amanas left | 16:00 |
|
shtrb
| osse, other then reflog , is there a way for me to know when a branch had been erased (and to undelete maybe ) ? | 16:02 |
| ← tiin57 left | 16:02 |
| sgn1 → sgn | 16:03 |
| → esc joined | 16:04 |
| ← esc left | 16:04 |
| → esc joined | 16:04 |
| ← gast0n left | 16:06 |
| → tiin57 joined | 16:06 |
| ← Anticom left | 16:08 |
| ← imMute left | 16:11 |
| → imMute joined | 16:11 |
| ← imMute left | 16:11 |
| → imMute joined | 16:11 |
|
ikke
| If you have recently checked out that branch, you should be able to restore it from the HEAD reflog | 16:13 |
|
| but otherwise, no | 16:13 |
|
| shtrb feels like an idiot | 16:14 |
|
shtrb
| thanks | 16:14 |
| ← imMute left | 16:14 |
| → imMute joined | 16:14 |
| ← imMute left | 16:14 |
| → imMute joined | 16:14 |
| → howdoi joined | 16:15 |
| ← chele left | 16:16 |
| → mat001 joined | 16:16 |
| ← nomadicmathmo left | 16:17 |
| → nomadicmathmo joined | 16:18 |
| ← mat001___ left | 16:19 |
| ← Jackneill left | 16:20 |
| → Jackneill joined | 16:23 |
| → gast0n joined | 16:29 |
| → mat001_ joined | 16:29 |
| ← nomadicmathmo left | 16:32 |
| ← mat001 left | 16:32 |
| ← tiin57 left | 16:32 |
| → nomadicmathmo joined | 16:32 |
| → orbyt_v7 joined | 16:33 |
| ← mat001_ left | 16:34 |
| → backthen31 joined | 16:35 |
| → tiin57 joined | 16:36 |
| ← mobidrop left | 16:41 |
|
ikke
| ter | 16:41 |
| → mat001 joined | 16:43 |
| ← orbyt_v7 left | 16:48 |
| ← Hounddog left | 16:48 |
| ← epony left | 16:49 |
| → madewokherd joined | 16:49 |
| ← Haohmaru left | 16:50 |
| → mat001_ joined | 16:52 |
| ← mat001 left | 16:53 |
| → Amanas joined | 16:54 |
| ← mat001_ left | 16:57 |
| → Fissure joined | 16:57 |
| ← rfuentess left | 16:58 |
| → mat001 joined | 16:58 |
| ← Amanas left | 16:59 |
| → dodobrain__ joined | 17:01 |
| ← tiin57 left | 17:02 |
| ← gast0n left | 17:05 |
| → tiin57 joined | 17:06 |
| → clime joined | 17:06 |
| → gast0n joined | 17:06 |
| ← rsx left | 17:12 |
| → Newami joined | 17:13 |
| → dyeplexer joined | 17:13 |
| ← Newami left | 17:13 |
|
dyeplexer
| is there a way to make git treat a symbolic link to a folder as a normal folder? | 17:14 |
|
ikke
| no | 17:14 |
|
dyeplexer
| ok | 17:15 |
| ← arcatech left | 17:19 |
| ← roadie left | 17:19 |
| → roadie joined | 17:19 |
| ← HumanG33k left | 17:19 |
| ← gast0n left | 17:21 |
| → orbyt_v7 joined | 17:22 |
| → theoceaniscool joined | 17:22 |
| → gast0n joined | 17:22 |
| ← ferdna left | 17:24 |
| → HumanG33k joined | 17:25 |
| → Amanas joined | 17:29 |
| ← Nokurn left | 17:31 |
| ← tiin57 left | 17:32 |
| → Guest20 joined | 17:33 |
| ← kerframil left | 17:35 |
| → tiin57 joined | 17:36 |
| → Nokurn joined | 17:37 |
| → dqx joined | 17:37 |
| ← HumanG33k left | 17:39 |
| ← Grems left | 17:39 |
| ← clara97 left | 17:39 |
| → Grems joined | 17:40 |
| → mat001_ joined | 17:40 |
| ← mightyjens left | 17:40 |
| → rustyshackleford joined | 17:42 |
| ← mat001 left | 17:42 |
| ← theorangeone left | 17:46 |
| ← HourGate left | 17:46 |
| → HourGate joined | 17:46 |
| → theorangeone joined | 17:47 |
| → jstein joined | 17:49 |
| ← dodobrain__ left | 17:50 |
| ← sysh left | 17:50 |
| ← spiri left | 17:51 |
| ← nasamuffin left | 17:51 |
| → nasamuffin joined | 17:55 |
| ← wolfshappen left | 17:57 |
| → bambanx joined | 17:57 |
| → clara97 joined | 17:58 |
| ← Geminizer left | 17:59 |
| ← mekhami left | 17:59 |
| → wolfshappen joined | 18:01 |
| ← clime left | 18:02 |
| ← tiin57 left | 18:02 |
| → epony joined | 18:03 |
| → theorangeone_ joined | 18:03 |
| ← theorangeone left | 18:03 |
| ← heyitsrama left | 18:04 |
| → heyitsrama joined | 18:05 |
| → kaartic joined | 18:05 |
| → tiin57 joined | 18:06 |
| → HumanG33k joined | 18:06 |
| → randallb_ joined | 18:07 |
| → webmariner joined | 18:08 |
| ← HumanG33k left | 18:09 |
| → HumanG33k joined | 18:10 |
| ← Guest20 left | 18:12 |
| ← dyeplexer left | 18:12 |
| ← Aquazi left | 18:13 |
| ← yohnnyjoe left | 18:17 |
| ← bocaneri left | 18:22 |
| → vicfred joined | 18:22 |
| ← tiin57 left | 18:32 |
| ← vdamewood left | 18:32 |
| → pac1 joined | 18:33 |
| → pac1_ joined | 18:33 |
| ← pac1_ left | 18:34 |
| ← Amanas left | 18:34 |
| → calcul0n_ joined | 18:35 |
| → tiin57 joined | 18:35 |
| → s2013 joined | 18:36 |
| ← calcul0n left | 18:38 |
| → hineios joined | 18:40 |
| → wootehfoot joined | 18:41 |
| → irc_user joined | 18:41 |
| → mat001 joined | 18:42 |
| ← mat001_ left | 18:46 |
| ← LetoThe2nd left | 18:55 |
| → arcatech joined | 18:56 |
| ← infl00p left | 18:59 |
| → infl00p joined | 18:59 |
| → yohnnyjoe joined | 19:00 |
| → mat001_ joined | 19:01 |
| ← tiin57 left | 19:02 |
| → thblt joined | 19:03 |
| ← mat001 left | 19:04 |
| ← voker57 left | 19:04 |
|
thblt
| Can git automatically add a branch to submodules and assign it a remote branch? I have horrible elisp scripts for that right now, I wonder if there's a better way. | 19:05 |
|
ikke
| thblt: probably something git submodule foreach? | 19:05 |
| → voker57 joined | 19:06 |
| → tiin57 joined | 19:06 |
| → mat001 joined | 19:07 |
|
thblt
| ikke: that's roughly what I do now. | 19:07 |
|
ikke
| I don't think git has anything better | 19:08 |
|
thblt
| (just noticed: you can't get --help on a subcommand if you're not in a repo) | 19:08 |
|
| er no just wrong syntax | 19:08 |
| ← mat001_ left | 19:09 |
|
thblt
| there's set-branch but I don't understand what it's supposed to do. | 19:10 |
|
| It seems to just update the field $module.path in .gitmodules, but the rest of git ignores this field altogether. | 19:12 |
| ← heyitsrama left | 19:14 |
| → mat001_ joined | 19:15 |
| ← mat001 left | 19:17 |
| → heyitsrama joined | 19:17 |
| → ferdna joined | 19:18 |
| → p-core joined | 19:19 |
|
kaartic
| thblt: you could get an idea of what $module.path means by taking a look at https://git-scm.com/docs/git-submodule/en#Documentation/git-submodule.txt---remote | 19:21 |
| ← heyitsrama left | 19:21 |
| ← p-core left | 19:23 |
| → p-core joined | 19:23 |
|
thblt
| kaartic: thanks! | 19:25 |
| → mat001 joined | 19:26 |
| ← shtrb left | 19:28 |
| ← mat001_ left | 19:28 |
| → heyitsrama joined | 19:30 |
| ← kaartic left | 19:31 |
| → mat001_ joined | 19:31 |
| ← Technodrome left | 19:32 |
| ← tiin57 left | 19:32 |
| ← justHaunted left | 19:32 |
| ← mat001 left | 19:34 |
| ← justanotheruser left | 19:35 |
| → tiin57 joined | 19:35 |
| → mat001 joined | 19:37 |
| → linux_dr__ joined | 19:38 |
| ← linux_dr__ left | 19:39 |
| ← mat001_ left | 19:40 |
| → linux_dr joined | 19:41 |
| → mat001_ joined | 19:44 |
| ← mat001 left | 19:46 |
| ← orbyt_v7 left | 19:47 |
| → vdamewood joined | 19:48 |
|
linux_dr
| Are there many git devs in here? I think I have a feature request that many people would find very helpful/powerful: Any ideas how to enhance the “unified diff” to make code that moved within or between files more obvious *AND* to make changes *TO* the moved code obvious also. (I know this is a non-trivial problem, but I think a solution would have long-term benefits for many projects.) | 19:48 |
| ← bambanx left | 19:49 |
| → bambanx joined | 19:51 |
| → justHaunted joined | 19:51 |
| → mat001 joined | 19:52 |
|
linux_dr
| Opinions? | 19:52 |
| ← yohnnyjoe left | 19:52 |
| ← mat001_ left | 19:52 |
| → mat001_ joined | 19:55 |
| ← nvmd left | 19:56 |
| ← mat001 left | 19:56 |
| ← heyitsrama left | 19:57 |
| → cdown_ joined | 19:58 |
|
thblt
| linux_dr: Out of my head: git doing diffing is a courtesy, not a fundamental feature. This could be implemented outside of git. | 19:58 |
|
osse
| linux_dr: are you looking for git diff --color-moved ? | 19:59 |
| → mat001 joined | 20:00 |
| ← yoh left | 20:00 |
| ← cdown left | 20:01 |
| cdown_ → cdown | 20:01 |
| ← mat001_ left | 20:01 |
| ← tiin57 left | 20:02 |
| → gigasu_shida joined | 20:03 |
| → inkbottle joined | 20:04 |
| ← zebrag left | 20:04 |
| ← nomadicmathmo left | 20:04 |
| → nomadicmathmo joined | 20:04 |
|
gigasu_shida
| do i need to add the venv directory name to gitignore if i'm doing a django project? | 20:04 |
|
ikke
| Yes | 20:05 |
|
| Committing a venv does not make a lot of sense | 20:05 |
| → tiin57 joined | 20:05 |
|
thblt
| I don't do much python but I think it's the kind of stuff that could even be globablly ignored | 20:07 |
|
gigasu_shida
| so if my venv dir is named "/home/username/tut" (the result of doing 'pwd'), is that what i add to my .gitignore file? | 20:07 |
|
thblt
| You usually add patterns, not paths. | 20:09 |
|
linux_dr
| thblt: true... I considered it a “UI feature” if anything... but if it’s gonna see any wide adoption, it will likely be in git. | 20:09 |
|
thblt
| If your venv is outside your repo you don't need to care at all. | 20:09 |
|
linux_dr
| osse: I’ll have to check it out. | 20:09 |
|
gigasu_shida
| how does git work? | 20:10 |
|
| like if i don't put anything in the gitignore, will every single file in the whole computer get backed up? | 20:10 |
|
linux_dr
| gigasu_shida: very well. ;-) | 20:10 |
|
thblt
| gigasu_shida: no. But I think you need to read at least a few chapters of the book. | 20:10 |
|
gigasu_shida
| ok | 20:11 |
|
thblt
| gigasu_shida: git isn't a backup system, it allows to track revisions over specific directories. | 20:11 |
|
gigasu_shida
| right, i mean to put "backed up" in parens | 20:11 |
|
| i mean quotes | 20:11 |
|
linux_dr
| I’ve heard of some git-based backup systems, but they tend to not be very robust. | 20:11 |
|
gigasu_shida
| i get it, it doesn't store the entirety of the file | 20:12 |
|
thblt
| git directories (repositories) are independant from each other. And git doesn't do much automatically, yo have to tell it what you want to make your new version of and give it a description. | 20:12 |
|
| linux_dr: I do abuse git this way, but it's Bad. | 20:12 |
|
linux_dr
| thblt: especially with binary files, I imagine | 20:13 |
|
thblt
| I'm not *that* bad. | 20:13 |
|
| gigasu_shida: Read this https://git-scm.com/book/en/v2 it will help. | 20:13 |
| → yoh joined | 20:15 |
| ← rcoote left | 20:15 |
|
gigasu_shida
| i will read it but right now i wanna make sure i don't destroy my computer | 20:15 |
|
thblt
| linux_dr: in all fairness though, git is perfectly happy with binary files. The UI isn't too nice but it works just as well. | 20:15 |
| ← nomadicmathmo left | 20:16 |
|
linux_dr
| thblt: I was referring to *git* being bad (read inefficient) with binary files. | 20:16 |
| → nomadicmathmo joined | 20:16 |
|
gigasu_shida
| what will happen if i don't have anything in .gitignore? | 20:16 |
|
| will it version control every single file in my whole PC? | 20:16 |
|
thblt
| gigasu_shida: nothing. | 20:16 |
|
| it won't do what you don't ask. It's not an Apple product. | 20:17 |
|
gigasu_shida
| will it version control every file? | 20:17 |
|
| if i do a 'git add .' will it version control every single file? | 20:17 |
| ← misuto left | 20:18 |
|
thblt
| gigasu_shida: yes, in the repository. | 20:19 |
|
linux_dr
| I believe git will never version control files inside a `.git` directory... and it does have a global gitignore default. | 20:20 |
| ← Maxattax left | 20:21 |
|
gigasu_shida
| so why do i need to mention my venv folder in the .gitignore? | 20:21 |
| ← arcatech left | 20:21 |
|
gigasu_shida
| shouldn't it ignore it by default? | 20:21 |
|
linux_dr
| You also, generally won’t have a git repo in the root of a file system... | 20:22 |
|
| gigasu_shida: if you put your venv in your global git ignores, it will. | 20:23 |
| ← justHaunted left | 20:23 |
|
gigasu_shida
| "I believe git will never version control files inside a `.git` directory" -- I don't understand this statement | 20:23 |
|
| it won't version control files in a directory with .git in it? | 20:24 |
| ← indy left | 20:28 |
| ← Eldin left | 20:28 |
|
gigasu_shida
| guys, you've only made me more confused | 20:30 |
|
| i'm just being honest | 20:30 |
| ← tiin57 left | 20:32 |
| → jaziz joined | 20:34 |
| → arcatech joined | 20:35 |
| ← epony left | 20:35 |
| → tiin57 joined | 20:36 |
| → g00s joined | 20:37 |
| ← ferdna left | 20:39 |
| ← roadie left | 20:40 |
| → arcatech_ joined | 20:40 |
| ← DiffieHellman left | 20:41 |
| → DiffieHellman joined | 20:41 |
| → lilbabygrlrp joined | 20:43 |
|
gigasu_shida
| i'm gonna read the book you gave me but i suspect i'll still have the same questions | 20:43 |
|
| and btw i've already read a basic tutorial | 20:43 |
| ← Kaivo left | 20:43 |
| ← arcatech left | 20:43 |
| ← jlevon left | 20:44 |
| ← loadout[m] left | 20:45 |
| ← Guest46327 left | 20:45 |
| ← cerna left | 20:45 |
| ← lambda left | 20:45 |
| ← batrick left | 20:45 |
| ← CustosLimen left | 20:45 |
| ← Nothing4You left | 20:45 |
| → mp3 joined | 20:45 |
| → __ad joined | 20:45 |
| → Goop_ joined | 20:45 |
| → CustosLimen joined | 20:45 |
| → chusem4n joined | 20:45 |
| → epony joined | 20:45 |
| → batrick joined | 20:45 |
| mp3 → Guest37748 | 20:45 |
| → Ram-Z joined | 20:46 |
| → justanotheruser joined | 20:46 |
| → SegFaultAX joined | 20:46 |
| → routingsparks joined | 20:46 |
| → Kaivo joined | 20:46 |
| → misuto joined | 20:47 |
| → justHaunted joined | 20:47 |
| → lambda joined | 20:47 |
| → AnAverageHuman joined | 20:47 |
| ← Mattiaslndstrm left | 20:48 |
| ← Voxel left | 20:48 |
| → Guest46327 joined | 20:49 |
| → loadout[m] joined | 20:49 |
| → m0viefreak joined | 20:50 |
| → Mattiaslndstrm joined | 20:50 |
| → cerna joined | 20:52 |
|
thblt
| gigasu_shida: git is complicated, and you need to read more than a basic tutorial to get started. The book is really good, I think. | 20:52 |
|
gigasu_shida
| well i've always found that if i can get basic questions answered ahead of time, i absorb technical documents better | 20:53 |
|
| i'm sure a lot of people are like this | 20:53 |
|
linux_dr
| gigasu_shida: a VCS and a back up system are really not that similar... al least not in use cases. | 20:54 |
|
gigasu_shida
| i mis-spoke earlier | 20:54 |
|
thblt
| I'm sorry, really, but you don't seem to understand basic answers. At the very least read the first two chapters (or even just 2) or the Git Book to get started. | 20:55 |
|
linux_dr
| And I’ve been half listening. So we’re both guilty... lol | 20:55 |
|
gigasu_shida
| if i say "git init" and it turns that directory into a repo, does that mean git only looks at files in that directory and its subdirectories? | 20:55 |
|
thblt
| yes | 20:56 |
|
gigasu_shida
| then it's very confusing why i needed to add the 'pattern' that points to my venv directory to my .gitignore | 20:56 |
|
| i'm just confused i guess maybe due to faulty info i got | 20:56 |
|
thblt
| <thblt> If your venv is outside your repo you don't need to care at all. | 20:56 |
|
linux_dr
| gigasu_shida: yep... a VCS is for managing files within a project, and that project, as it exists on your computer, is a directory | 20:56 |
|
thblt
| gigasu_shida: ^ | 20:56 |
|
gigasu_shida
| yeah, i'm still not sure what a 'repo' is | 20:57 |
| ← backthen31 left | 20:57 |
|
gigasu_shida
| i guess it's a directory where you call 'git init', plus its subdirectories | 20:57 |
|
thblt
| it's a directory managed by git. | 20:57 |
|
| Yes. | 20:57 |
|
gigasu_shida
| right, i get that | 20:57 |
|
| but which folders/directories does it cover/entail | 20:57 |
|
linux_dr
| gigasu_shida: do you have a specific use case you’re trying to fill? Or are you just wanting to add git to your tool belt? | 20:58 |
|
gigasu_shida
| the tutorials i've read don't come out and say exactly which directories are paid attention to when you run a 'git init' | 20:58 |
| ← amahl_ left | 20:58 |
|
gigasu_shida
| my specific use case is django/python | 20:58 |
| ← justHaunted left | 20:58 |
|
gigasu_shida
| which often involves using venv | 20:58 |
| ← HourGate left | 20:59 |
|
osse
| gigasu_shida: the git repo covers the files you tell it to cover with git add | 21:00 |
|
imMute
| gigasu_shida: the folder you're in when you 'git init' is the one that becomes the root of the repo. | 21:00 |
|
gigasu_shida
| right, i know that. you can say 'git add <specific file path>' , but most people just do "git add ." | 21:00 |
|
| and i was wondering what, by default, "git add ." covers | 21:01 |
|
imMute
| gigasu_shida: '.' is the directory you're currently in. | 21:01 |
|
| that's a shell convention, not git. | 21:01 |
| ← mud left | 21:01 |
|
gigasu_shida
| does '.' also cover subdirectories? | 21:01 |
|
imMute
| yes. | 21:01 |
|
| (well not shell, more like filesystem thing? either way, it's not specific to git) | 21:01 |
|
gigasu_shida
| ok so a .gitignore is basically blocking out things that are inside that repo directory and its subdirectories | 21:02 |
| ← feriman left | 21:02 |
| ← tiin57 left | 21:02 |
|
imMute
| gigasu_shida: more like makes them not show up as untracked in 'git status'. if you have a file that git already tracks, gitignore isn't gonna change anything. | 21:02 |
|
| gigasu_shida: .gitignore is for hiding files from 'git status' that you don't want to add to the repo | 21:03 |
| → Nothing4You joined | 21:03 |
|
linux_dr
| gigasu_shida: the general rule of thumb for VCS, is any file that can be automatically generated from your source files ( like vendor directories) should be excluded from VCS | 21:03 |
|
| Also, and files that are developer-specific should be excluded as well. | 21:04 |
|
| And while I’m at it. Also exclude any files containing “secrets” like encryption keys, etc... that means care must be taken to keep the secrets out of your code, and to distribute the secrets to those that need them. | 21:05 |
| → tiin57 joined | 21:06 |
| → justHaunted joined | 21:06 |
|
linux_dr
| But, like all such rules, part of the value of experience is knowing when to violate these rules. | 21:07 |
|
gigasu_shida
| thanks immute that's helpful and worth writing down | 21:07 |
| → notnatebtw joined | 21:11 |
| ← vdamewood left | 21:11 |
| → Amanas joined | 21:13 |
|
linux_dr
| gigasu_shida: i will say, you may have an easier time than some that came from centralize VCSs as there is some stuff you don’t need to un-learn. | 21:14 |
| → relipse joined | 21:16 |
|
gigasu_shida
| i now know what the 'VCS' menu in pycharm means =P | 21:16 |
| ← p-core left | 21:19 |
| ← arcatech_ left | 21:20 |
| ← Hello71 left | 21:21 |
| → Hello71 joined | 21:21 |
| ← justHaunted left | 21:23 |
| → justHaunted joined | 21:24 |
| ← thblt left | 21:27 |
| → thblt joined | 21:27 |
| ← thblt left | 21:27 |
| ← milkt left | 21:28 |
| → milkt joined | 21:30 |
|
gigasu_shida
| oh i get what's going on. a lot of people put their venv inside their django project directory. so then it needs to be excluded | 21:31 |
| ← tiin57 left | 21:32 |
| ← AnAverageHuman left | 21:33 |
| ← wootehfoot left | 21:33 |
| → tiin57 joined | 21:35 |
| ← Amanas left | 21:39 |
| → Soliton joined | 21:40 |
| ← lacrymology left | 21:42 |
| ← Soliton left | 21:42 |
| ← lilbabygrlrp left | 21:42 |
| ← routingsparks left | 21:43 |
| → Soliton joined | 21:43 |
| ← randallb_ left | 21:46 |
| ← clara97 left | 21:49 |
| ← irc_user left | 21:51 |
| → Mike60 joined | 21:54 |
| ← m0viefreak left | 21:56 |
|
sybariten
| osse: aha , i was hoping to magically have some other behaviour (regarding git and links). I basically wanted git to be unaware that it was looking at a link | 21:57 |
| ← tiin57 left | 22:03 |
| → routingsparks joined | 22:04 |
| → indy joined | 22:04 |
| → arcatech joined | 22:05 |
| → tiin57 joined | 22:06 |
| → dpflick_ joined | 22:07 |
| ← dpflick left | 22:09 |
|
osse
| sybariten: maybe you can keep the actual content in git and have a symlink the other way | 22:10 |
|
sybariten
| osse: i did something like that finally | 22:11 |
|
| I can maybe take the opportunity to explain my case, maybe someone has an idea or suggestion. I have one dir called ~/courses , where i get stuff from school courses. These files are handled with a sort of a proprietary vcersioning system. It acts a bit like git so i think its running that under the hood. But somehow i also like to keep a repo on bitbucket, with parts of this code i'm doing in the courses. So | 22:14 |
|
| this is under ~/programming or something. | 22:14 |
| → NeilG joined | 22:14 |
| ← Mike60 left | 22:15 |
| → Atlenohen_ joined | 22:15 |
|
sybariten
| I mean, since ~/courses is already handled by git somehow i didnt wanna mess it up by trying to version that dir explicitly, to bitbucket. So my repo is separate. But if i have something like ~/courses/assignment1 , i was hoping i would be able to just create a link ~/programming/assignment1 cause i'm doing the real work in ~/courses . Now i'm manually copying stuff from courses to programming, as they get | 22:16 |
|
| finished..... | 22:16 |
| ← fling left | 22:17 |
| ← Atlenohen_ left | 22:17 |
| ← Atlenohen left | 22:17 |
| → roganjoshina joined | 22:22 |
| ← JanC left | 22:25 |
| → JanC joined | 22:25 |
| → Amanas joined | 22:29 |
| ← roganjoshina left | 22:30 |
| ← tiin57 left | 22:32 |
| → tiin57 joined | 22:35 |
| → servo joined | 22:50 |
| ← jnavila left | 22:51 |
| ← jstein left | 22:54 |
| ← servo left | 22:54 |
| → dodobrain joined | 22:55 |
| → ferdna joined | 22:56 |
| → AnAverageHuman joined | 22:57 |
| ← tiin57 left | 23:02 |
|
NeilG
| how do I make a branch on origin equal to my local branch? | 23:05 |
| → tiin57 joined | 23:05 |
|
NeilG
| without deleting it and recreating it | 23:06 |
| ← justanotheruser left | 23:06 |
| → dflick__ joined | 23:07 |
|
cbreak
| NeilG: you can force push | 23:09 |
| ← dpflick_ left | 23:09 |
| ← calcul0n_ left | 23:09 |
| ← s2013 left | 23:10 |
|
NeilG
| cbreak how do I do that? It seems like the branches aren't tracking each other | 23:11 |
|
cbreak
| git push -fu origin localname:remotename | 23:11 |
|
NeilG
| can I make my branch track the remote first? | 23:11 |
| ← aliss left | 23:11 |
|
NeilG
| or should I? | 23:11 |
|
cbreak
| after this, the local branch will track the remote one, and the remote one will be in the state the local one was during the push | 23:11 |
|
NeilG
| oh nice | 23:11 |
|
| NICE | 23:12 |
|
| thank you | 23:12 |
|
cbreak
| for example git push -fu origin HEAD | 23:12 |
|
NeilG
| what does that example do? | 23:13 |
|
| I thought you needed a : ? | 23:13 |
|
Timvde
| If you don't specify a localname: it will take the current branch | 23:13 |
|
NeilG
| oh lol ok | 23:13 |
|
Timvde
| HEAD as remotename will match the local branch name | 23:13 |
|
NeilG
| wait | 23:13 |
|
| what | 23:13 |
|
| if I don't specify localname, it uses the branch that I'm in, right? | 23:14 |
|
Timvde
| If you're on mybranch and you push to HEAD, it will push to mybranch remotely | 23:14 |
| ← HumanG33k left | 23:14 |
|
NeilG
| you just said I was pushing to HEAD | 23:14 |
|
| you mean push from mybranch? | 23:14 |
| → zebrag joined | 23:14 |
|
Timvde
| Yes | 23:14 |
| ← ariedro left | 23:14 |
|
NeilG
| ok that makes sense | 23:15 |
| ← AnAverageHuman left | 23:16 |
|
NeilG
| I tend to go to the branch I'm working from anyway, so I'll probably just use that form | 23:16 |
|
Timvde
| If you have mybranch checked out, `git push origin HEAD` is equivalent to `git push origin mybranch` | 23:16 |
|
| If that's a clearer explanation | 23:16 |
|
NeilG
| I thought HEAD on master was a separate branch? | 23:17 |
|
| than mybranch | 23:17 |
| ← inkbottle left | 23:17 |
|
NeilG
| origin/HEAD is different than origin/mybranch | 23:17 |
|
Timvde
| Yes, but check the git push man page | 23:17 |
|
NeilG
| so why wouldn't git push origin mybranch push from whatever I have checked out to origin/mybranch? | 23:18 |
|
Timvde
| It explains `git push origin HEAD` as: A handy way to push the current branch to the same name on the remote. | 23:18 |
|
NeilG
| the git man page is opaque lol | 23:18 |
|
| ahahah | 23:18 |
|
| aha | 23:18 |
|
| got it | 23:18 |
|
Timvde
| NeilG: it does | 23:18 |
|
NeilG
| okay | 23:18 |
|
Timvde
| but our branch names are PROJ-123/doing_some_stuff | 23:18 |
|
NeilG
| that is a confusing overloaded meaning of HEAD | 23:18 |
|
Timvde
| So HEAD is a nice shorthand :) | 23:18 |
|
NeilG
| makes sense | 23:19 |
|
| I use some kind of autocomplete thing, so i can just tab | 23:19 |
| ← random_yanek left | 23:19 |
|
NeilG
| not sure how it works, but I think it's part of zsh | 23:19 |
|
| thanks for the explanation | 23:19 |
|
mackerman
| HEAD is a pointer to what you are working on how | 23:19 |
|
| * now | 23:19 |
| ← g00s left | 23:19 |
|
Timvde
| Yea, I also have autocomplete, but I'd still have to type the ticket number, while I have an alias set to git push -u origin HEAD :) | 23:19 |
|
NeilG
| mackerman yes, I knew that, but I didn't realize that origin/HEAD had a special meaning when pushing | 23:20 |
|
| I thought origin/HEAD was always origin/master | 23:20 |
| → Technodrome joined | 23:20 |
|
NeilG
| (I was just corrected) | 23:21 |
| ← PJBoy left | 23:21 |
| → AnAverageHuman joined | 23:21 |
|
NeilG
| timvde thanks, yes that makes sense | 23:21 |
|
Timvde
| Yes, but `origin HEAD` != `origin/HEAD` | 23:21 |
|
| `origin/HEAD` points to the branch that will be checked out on clone | 23:22 |
|
| so it is usually origin/master, as you noticed | 23:22 |
| ← CodeSlingerPaul left | 23:22 |
| → yohnnyjoe joined | 23:27 |
| ← pabs3 left | 23:27 |
|
cbreak
| the HEAD in git push origin HEAD is not origin/HEAD | 23:28 |
|
| it's your local HEAD | 23:28 |
| → random_yanek joined | 23:29 |
| ← tiin57 left | 23:32 |
| ← hineios left | 23:33 |
| → tiin57 joined | 23:36 |
| → hineios joined | 23:37 |
| → ariedro joined | 23:38 |
| ariedro → Guest66899 | 23:39 |
| → Hey joined | 23:39 |
|
Hey
| how do I recommit all files and folders so I can push them all and overwrite | 23:40 |
|
cbreak
| ? | 23:41 |
| ← Amanas left | 23:41 |
|
cbreak
| if you didn't change anything, you can make an empty commit with --allow-empty | 23:41 |
|
| but really... what you ask for makes no sense | 23:42 |
|
Hey
| yeah | 23:42 |
|
| Let me check something first | 23:42 |
|
dodobrain
| i use `git log --oneline --decorate --graph --all` quite a lot. recently i've had to add in a lot of remotes due to an increase of new developers on the projects i work on | 23:51 |
|
| is there a way i can limit the output of my cmdline to cimply my local repo and my origin remote ? i dont want to see decorations or branches or commits from other remotes | 23:52 |
|
| previously the amount of remotes i had was quite low, so there was no issue in having them show up in my --all cmdline output. but now things are getting out of hand and im not able to visually parse the output given the amount of other remotes and their branches showing up | 23:53 |
| → shush joined | 23:57 |
| ← theoceaniscool left | 23:58 |