On the command line I ran:
svn checkout --depth infinity "RepoURL"
It creates the directory matching the repo folder with all the same files but it is not a working copy. Right-clicking on it with TortoiseSVN gives a SVN upgrade working copy option and nothing else such as commit or update. If I try the same checkout with TortoiseSVN, it works fine and produces a working copy, green icon and all. I tried running svn upgrade in this new directory on the command line but that didn't change anything. I also tried a normal checkout using SharpSVN and c# by running SvnClient.Checkout and I had the same issue.
I have Subversion 1.7.18 and TortoiseSVN 1.7.15.
You might be pulling files defining the local project enviroment variables that's not same as your local env. - Show us the problem with your non functional project! this is too vague
Related
I have a C# project that I am creating which uses a few DLLs located in a separate folder in my project. I have added these files into the application folder on the file system viewer in the installer project.
Everything seems to work fine, it builds properly and doesn't show any big errors.
However, after I try to install my application, it is way smaller than it should be (8.24 MB compared to over 400 MB). I believe the issue arises when I try to open the Microsoft Azure Kinect camera. An error pops up when I do this saying the device could not be opened. This is strange to me because the program runs just fine in debug mode in Visual Studio, meaning the camera is plugged in properly and works.
I compared some of the DLL files from a working, older version that a consultant had made (they created an installer that works fine on my computer). The file sizes were drastically different for these DLLs.
For reference:
File Size Differences
I have tried redoing the installer, deleting and re-adding the DLLs, and overwriting the bigger files into my application after installation. I have the SDKs for the Kinect downloaded on my computer. I am also not an administrator for this computer as it is not my personal computer. Another note, the installer from the consultant works fine, however when I try to download the source code that installer came from and try to install it from there, the same issue happens.
The video the consultant used to create the installer is this: https://youtu.be/6Mfp2EXmVNI
I followed this tutorial as well, but same issue.
This is a summary of my comments above
So it looks like you are using Git Large File System (LFS). You currently only have placeholder files. With a Git LFS repo a git pull only grabs non-LFS files whilst leaving placeholder files for everything else. You need to tell Git LFS to actually download them proper.
Try:
git lfs pull
Some Git GUI clients will do this for you automatically.
OP:
...which uses a few DLLs located in a separate folder...
BTW, if these files are essentially static consider adding them to Git as non-LFS files then you can grab them like any other files in your Git repo. LFS is only "useful" if the files will be changing a reasonable number of times and then you have to ask yourself is it really worth it.
See also
git-lfs-pull(1) -- Download all Git LFS files for current ref & checkout
I have an old project that uses GitHub as the git repository.
I've just made some changes to that project and now I need to update the repository.
But, after buying a new computer earlier this year, Visual Studio no longer knows about any connection to that repository.
So how can I fix this without losing any of the changes I just made? My two primary options given are Create Git Repository and Clone Repository. I don't think I want either of those.
Apparently, the hidden .git folder is missing in the project, which identifies a folder on the disk as git repository. Without this folder, no git commands will be available (whether from the command line or any GUI tool).
I suggest the following steps to resync the project to github:
Check out the project from github to a new folder
Set the checkout folder to the branch where the project was when the .git folder was lost (since it's an old project, you can probably take master)
Copy the contents of the existing source folder into the checkout folder. Make sure not to copy any hidden .git folders if there are still broken leftovers.
Verify and commit the diff.
I have my ASP.NET MVC Project Repository in GitHub.
By using Git Extensions I have taken the Clone into my local machine. I have added new Folders / .cs files / .aspx files etc.
I have Committed all the new files using TortoiseGit Commit by Right Clicking on each folder/files successfully.
Since I have added new files/folders, then I have to commit the Project file (*.csproj), when I try to commit I got the error:
"did not exit cleanly (exit code 1).
What can I do now? should I open the Project file directly in GitHub repository and update it from my local directory project file? like, copy and Paste!
It will provide any issue later on! let me know if any have this issue.
Maybe the file is taken by another process: try the same commit after closing other windows.
If not, check also the command-line alternative, after installing a Git for Windows (2.21 at the moment)
i have a little problem using gitgui for a Visual Studio project...
there is a .gitignore file in the original Repository to exclude temporary files / the obj folder.
I tried cloning (Full Repository Clone) to my Home Folder from a network drive (Server Drive) - changed something. Tried to Commit it - it still commits the obj folder, i tried deleting the obj folder and get the error:
Pushing to I:/VPR/GIT/BrainFAQ_V3
To I:/VPR/GIT/BrainFAQ_V3
! [rejected] master -> master (non-fast-forward)
error: failed to push some refs to 'I:/VPR/GIT/BrainFAQ_V3'
hint: Updates were rejected because the tip of your current branch is behind
hint: its remote counterpart. Integrate the remote changes (e.g.
hint: 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.
Maybe anyone can help me how to fix this.
Follow below steps
Connect Visual Studio with Git Server
Clone in Local folder of your system
Open the solution that just got retrieved from Git Server to your local system
Do the changes and build the application.
Delete the folder you do not want to commit in Git from Visual studio, your .sln file of project will get changed accordingly or can use .gitignore and specify the files that you do not commit to Git Server. For More refer https://help.github.com/articles/ignoring-files/
Now, commit and push the changes to Git Server
Step 6 will be success only if there is not commit happened on master branch from the time you cloned the application.
I'm using the GitHub application for windows to transfer my code between my local and the server. I've made two ASP.net services thus far, which work fine- however my latest c# service's .exe and related files aren't picked up by the GitHub app, meaning when I pull from the server, the .exe of the service isn't available to allow installation. (From the debug folder, the installation.log file is picked up, but not the .exe and some attached .dlls)
I've reviewed the directory, and there's no git.ignore instructing the app to ignore it.
Furthermore, when I make changes to my existing services, their .exe is updated, and picked up by the app and allowed to transfer.
Why doesn't my new service's .exe and related installation files get picked up?
I'm using VS2008 (Don't judge me, it's comfortable).
Any advice appreciated, thanks.
Hey actually something like that happened to me once with the Github for Windows. Well at least for what I understand is that the file doesn't get added to the remote git repo.
I would start the git shell:
Open the repo you're working on >> Tools and Options (Button) >> Open a shell here
There try this to see if file is added to the repo:
git ls-files yourService.exe --error-unmatch
if not try figuring out if it's ignored some how:
git check-ignore -v -- yourService.exe
if you get nothing, it's not ignored. If you do get output it is ignored somehow.
So first if it's ignored force add it manually:
git add -f yourService.exe
Now commit and push it to the server. In case you've never done this manually use:
git commit yourService.exe "This is a commit message for one file only..." (For commiting on a specific file)
or if you want to commit on all changes and added files use:
git commit -a yourService.exe "This is a commit message for all changes and added files..."
In the case it's not even ignored you may have merge problems with the server, in that case you have to to force push to server by using: git push -f <remote> <branch> (e.g. git push -f origin master) which is very well explained by Trev Norris here: Force "git push" to overwrite remote files.
After that it should be solved, I kinda stopped using Github for Windows because of these ignore issues (which might be purposely developed but I do it manually and use www.github.com for visuals).
Hope this helps you.