When your question is answered use !solved to mark the question as resolved.
Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question use !howto ask.
100 messages ยท Page 1 of 1 (latest)
When your question is answered use !solved to mark the question as resolved.
Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question use !howto ask.
you generally have one main per project / per executable
what if I need to upload them to github tho. can i upload more than one project (having different programs) in the same repo?
yeah you can have a repo that has serveral projects
oh ok so let me just do 5 different project than haha
and which version of c is recommended to code in?
C99 onwards
c17 is good?
sure
ok tks
ok I have my 4 projects. How shall I upload them to my repo on github?
the first 4 are my projects, and the last 1 is my repo
should i drag the project folders to the repo?
Idk about clion, but in vs there's a thing called "solution" that is basically a container for projects. There should be similar functionality in clion ๐ค๐ค
what does "solution" do tho?
Container of projects
Oh I see, it uses cmake ๐ค๐ค
In cmake, there's "targets", and each target is basically an executable you want to compile
well our professor told us to use cmake. Im not sure what it does tho
Basically you need to create separate target for each task
what do you mean by targets tho?
i just have to uploade the code onto github
is it possible maybe it has something to do with the build fuction on Clion
i do already have a repo. Im not sure how to upload my files tho
i coppied the link, now how do i set it as remote haha
Hmm search somewhere in clion
i have no clue where to check
no what is that?
It's add the files to the local repository
Only after that you can upload the local repository to github
i think i commited but nothing happened
Now you can publish/push
from where from the desk or web version?
From clion
its saying this
Well from what directory are you running this command
Type
pwd
What does it output
Hmmm
You need to upload while in the folder where your repository is
oh ok so ill move these clion files into the respo and then do this?
What files
these projects im working on
Aren't they already there
i removed them now theyre back in their
Well ideally you shouldnt have to move anything anywhere
Well you can try now
git push
well something happened but it aint allowing me to enter my password haha
what now
whats that ๐ข
Well it gave you a link
To collaborate on a project I guess. Or just to store their code
I think i did it!
๐ค ๐ฅณ๐ค๐ซ๐๐๐
Well this probably should be explained gradually at university
Like, first hello world
Then program with multiple files
Then make
Then cmake
Then git
Not just thrown like this ๐ค๐ค
exactlly that what i was saying
im so tired of uni already such bull
also is their a command or a way to update the files?
thank you very much @shy fiber for your help really means a lot. although im going to delete this post due to I have a lot of information about me and professor hahah. Thanks again
@pine thunder
Please don't delete forum posts. They can be helpful to refer to later and other members can learn from them. In the future you can use !solved to close a post and mark a post as solved.
Yes
You commit and push again
That's the whole point of git
It's a "version control system"
@pine thunder Has your question been resolved? If so, type !solved :)