#need help with gibhutb

51 messages · Page 1 of 1 (latest)

balmy notch

Hello I'm a very basic user of github and I wanted to know what do I need to use if:

  • I want to have the code of the official bot version in use
  • I want to have the code of the test/dev version seperated
    In case I need to fix a bug on the production one while the dev version is completely in rewriting.

if anybody knows how and/or can refer me for things to learn peepoSmile

worn daggerBOT
  • Consider reading #how-to-get-help to improve your question!
  • Explain what exactly your issue is.
  • Post the full error stack trace, not just the top part!
  • Show your code!
  • Issue solved? Press the button!
balmy notch
ripe sail

i mean, it's just.. using 2 branches separately

you have the main branch which would probably for prod, and then a dev branch
you can commit to each separately, and you can merge dev onto main

balmy notch

Oh ok

so merging is just transfering code from a branch to an other

ripe sail

check out the link i sent

it has stuff about using branches

ripe sail
balmy notch

and I guess there's an option to save the master as a realease version ?

ripe sail

you can configure that to be shown in github but github isn't really where you publish stuff

balmy notch

I mean accessing to old version of master code

like if I do a rework such as a v2 and merge it to master I want to have acess to the master v1

sorry if my english sounds weird

ripe sail

git saves a full commit history

but you can also branch for those if you want

balmy notch

isn't that tags are for ?

ripe sail

version tags?

yeah

balmy notch

these

ripe sail

sure

ripe sail

github is where you host gits

like pornhub is where you host porn

(that's the go-to comparison. don't judge.)

plucky heath
ripe sail

it isn't

you don't publish gits, you publish projects

plucky heath

How will you define git as then? A part of code?

Or is it a part of a project?

ripe sail

git, on its own, is an scm (source control management, aka version control) software
it keeps tracks of changes within a project, which git calls a repository
when saying "github is where you host gits", "gits" are referring to those repositories with the change history tracked via git

plucky heath

I see... thanks for the understanding/help... but then if a project is a repo and u r publishing a project... u r using github to publish a project...

ripe sail

secondly, published projects aren't just the source code

from source to dist often involves build steps, like compilation

those aren't reflected in the repo

plucky heath
ripe sail

that's hosting a server or whatever, but here we're talking about hosting content

like google drive, or youtube, or like i mentioned before, pornhub

plucky heath

Well to me... hosting and publishing are synonymous to each other rn...
Coz 1. U r storing that code.. 2. U r not just storing but sharing that as well.. and others to see and contribute to it... and many times i have seen examples where people try to give a outlook of what their code does using images and such...which i consider as publishing... publishing for me is to convey ur thing to peeps so they can utilize and reuse in github sense

ripe sail

publishing doesn't do either of those

publishing software is giving out a usable version, not the source code

publishing ts doesn't include ts, it distributes js

publishing java doesn't include java, it distributes jars

plucky heath

I thinm we may have a difference of meaning between what publishing means... thanks for the kind info...it helped me learn new.things

balmy notch

Can I mark this as solved ?

ripe sail

well, did you manage to get the 2 branches up?