I have installed github a few days ago and just getting the hang of things, managed to figure out how to put my VSO source file into github repositories but since VSO makes an entire directory for each program full of other files along with the source file which go into the rep aswell. I'm not really sure if that's how it should be or not, But I would like for just the Source file to be sent into the repository.
Till now I've been adding with
git add .
I have tried the
git add <filename.cpp>
or
git add <filename>
but it didn't recognize it I think cuz the source file is within the directory that VSO made for it which is within my rep
Alright I think i figured it out for now,I went one directory deeper and tried the git add <filename> again and it no longer shows the other uneccesary VSO files on my rep.ty
Related
I'm working on a solution (C#) with 3 projects in it (one library and two applications) and I wonder what is the bare minimum of files you need to commit to be able to pull off a fresh solution and get it to work right away?
Obviously all source files, *.sln, *.csproj are needed and not the obj folder or bin folder (unless I want to keep a working copy of the compiled files).
But do I need to commit the:
Properties folder
.vs folder
*.resx
*.config
I have Googled it but all I found was a list of the file types, but no explanation of what files where critical to make the solution/project load and compile.
[EDIT]
It has been suggested that this is the same question as: Should I add the Visual Studio 2015 .vs folder to source control?
The question is not related to only the .vs folder, but to all project/solution files.
Though SVN and Git are different Version Control System, I think the files that should be excluded in the Version Control System should be similar. This file is a ignore file for Git (an .gitignore), but should be work as it should in SVN Version Control Systems.
https://github.com/github/gitignore/blob/master/VisualStudio.gitignore
This file is often used in various places like Github Destktop, or the Github Site itself.
I am very new to VCG. I've cloned the devel branch of the Git repo and tried to run the test/tetramesh program in theapps directory to test out the install. When I load it up in VS Community 2015 and compile, it fails.
Cannot open source file: No such file or directory
After changing these paths to fit my file system, the program still won't compile. The files referenced in the aforementioned headers also have broken paths. There has to be better solution than manually editing all these files.
Some direction or a helpful link would be greatly appreciated.
Thank You!
Looking at the test/tetramesh I see that a lot of header files are not present. Also under project properties the folder locations are wrongly defined for additional include directories.
I wouldn't put too much effort in this test....
I am new to C++, and am running CLion with github.
I have the basic hello world project set up, and there are several .xml files in a /.idea folder that I am not sure I should be including. Right now, I am including everything. My question is: what can I leave out of vcs?
Here is a snapshot of what I have (the .xmls are at the bottom; right now everything has been added to VCS, so they are all green):
The specific question is:
If I do not add the .xml files to version control, and I checkout the code from some other computer, will I be able to run the code? Or are some of the .xml files needed?
(didn't realize this was too broad. will delete if it is still too broad).
you can omit the entire .idea folder by creating a .gitignore file in the root directory and adding a line for
.idea
then you can select the .idea folder and under 'vcs' or 'git' choose 'revert' to remove them from staging if you have not committed them or to undo the commits that added them to the repo
good luck!
Okay, so I know this sounds like a very nooby question but I did my best so please hear me out before adding negative comments/downvoting.
Okay, so from what my research says, using "cURL" for my C++ program when involving anything web-related is the best way to go. Now, me being new to C++, I didnt want to ask questions for every step and try doing it myself, apparently, this was not the case.
Problem: CodeBlocks is not recognizing the curl plugin (saying it does not exist)
Goal:
Attempt to make the example source located here (from the official cURL website) work.
Attempt 1:
So, I downloaded the plugin using the "help manager" where it shows which is the best thing to download. I got the .zip file "curl-7.24.0-devel-mingw32" back. I decided to copy the contents of the "bin" folder to my projects bin and copy the "include" folder to my project. It kept saying it did not recognize "/curl/curl.h" or saying it did not exist.
Attempt 2:
Without deleting the "bin" and "include" folder, i decided to move the "curl.h" folder into my project itself (via CodeBlocks) by creating a folder called "curl" and then putting the "curl.h" inside the folder (The folder "curl" was in the "Headers" folder created by the program) and attempt to run it again seeing that it existed. Same Error
Attempt 3:
After countless searches, I come across that I should put my curl files and all the files inside the "bin" folder into C:\Windows\ folder. So I copied everything in the "includes" folder and the contents of the bin folder (including the "curl" folder in it) to the WINDOWS folder. Same error.
Attempt 4: - Sort of...
Now, there was something about going to my project options and selecting certain files to import and that stuff but it was way more confusing because each site had different options so im unable to do recall the steps.
Im now relying on the StackOverFlow community to give me a hand. I tried explaining my problem in the most detailed way but if you have any questions or need more information, dont hesitate to ask. Also, here is the errors im getting:
http://pastebin.com/raw.php?i=B1wsqvmA
Here is my source:
http://pastebin.com/raw.php?i=YShFZf8G
Can someone please guide me through this mess? Thank you so much!
the problem is that you're not telling codeblocks where to search for the include files, you shouldn't be copying the headers to the project's folder.
You can select the include directories this way:
In Project -> Build Options -> Search Directories -> Compiler
There is a button to add include directories, in this case the "include" folder of libcURL, And that error should be gone.
You will have to follow a similar process to add the files for the linker.
I have a C++ project in Eclipse. The project uses Perforce and Eclipse has the Perforce plugin installed. Everything was fine, until I decided to create a git repo in my project. I created the git repo to snapshot some changes which I wasn't ready to commit. Everything was fine until I refreshed my files in Eclipse. Two problems have occurred:
Eclipse found my .git folder, and indexed all of the files inside of it.
Eclipse also decided to add all the git file to my pending change list.
If I create a new file within Eclipse, I'd like it to add it to Perforce, but if it happens to find a file, I don't want it to do anything with it. I'd also like to give Eclipse a list of file types to always ignore, just like I do with my .gitignore file.
I'm using the P4WSAD plugin, but I'm pretty sure the problem can occur anytime you have files you want Eclipse to not see.
Just add a file .p4ignore in your project root and add everything you want P4WSAD to ignore, such as
.git
See the docu on P4WSAD for more info.
That should take care of the Perforce part of your question. For the Eclipse part, please see this SO question.