Search the Community
Showing results for tags 'git'.
-
I am using Proxmox to host a collection of VMs including my Windows, and Ubuntu environment, as well as TrueNAS Scale. I am wanting to store local git repos on my NAS directly, (Not the server / remote repos). However there is an issue with file permissions on my shares since git want to run `chmod` on some of the files, and needs to keep track of updates. Which makes sense I am using SMB, with ACL and from what I read it really abstracts the permissions out. This is my first post on the forum, so if I messed something up, or need to supply additional info please let me know. tl;dr What is a good way of hosting local git repos on a network drive
-
- truenas scale
- git
-
(and 2 more)
Tagged with:
-
so, I'm running gradlew.bat to build baritone 1.20.2 for minecraft and it keeps saying that git isn't installed but it actually is. The main problem is that a "dist" folder isn't being created which is supposed to hold artifacts aka .jar files of the mod baritone. If it's not against the rules here, i am also using which has baritone built-in, but the #mine command doesn't work under Y level 0.
-
I am facing an issue where when I right click any folder and select "Git bash here" it show's "Application not found". I have tried to make changes in windows registry but it didn't work and I've also reinstalled the program many times. I am not sure what is causing this issue. If anyone has faced the same issue and have resolved it please share your diagnosing steps. My current operating system is Windows 10 Pro, version 21H2.
-
Managing dotfiles has always been quite annoying to me. But thankfully, I never really had a reason to do it too often. If I had to, all I did was tar my whole .config and copy the file to and external drive. That works fine, but it’s not the best way to backup the constant changes I usually do to customize the way my programs look or act, and as a customization freak, that happens quite often. I had seen many different ways to backup dotfiles: git bare repos, yadm, symlinking scripts, and of course, GNU Stow. All of these methods have their up and downs, but in the end, stow convinced me, and I decided to give it a try. According to their home page: If you don’t really understand it yet, don’t worry, I don’t either! But in this post, I will do my best to show you the steps to backup your current config files, I hope whoever reads this finds it useful. Creating a dotfiles repository The first step to backup your dotfiles, is to create an empty repository in some hosting service, such as GitHub, Codeberg or SourceHut. This is optional if you only want to see how stow works, but necessary to have an external backup outside your computer. Once you are done, clone the empty repo to your home directory, or in any place you want. (This tutorial will be using the home directory). To clone a repo, just do: git clone https://site.com/link/to/repo In my case, I use Tildegit, a Gitea instance, so my command looks like this. git clone https://tildegit.org/chrono/dotfiles.git You can clone my dotfiles if you want to use them, here they are if you are interested. Using stow to backup your configuration Before actually backing something up, we need to install stow, depending on your distribution, you can install it with your package manager of choice. In my case, EndeavourOS is based on Arch, so I do: $ sudo pacman -S stow Lets start by backing up the configuration of a single program. While we can backup our whole .config folder, that’s not a good idea, since some programs store important information that should stay private, and I think its better to only backup what we have actually configured. For this example, I will backup my picom configurations. The first step is to create a new directory to use as a base (if you cloned your empty repo, you’ll be using that). You also have to create a folder structure, depending on where you want the configuration to be stored, this depends on the location the program will read its configuration from. We’ll refer to this folder as dotfiles. If you want to add a README file or other stuff that you is not a config files, you can create another directory inside of dotfiles, in my case, I have made a stow_home folder, which will be where we’ll run the stow command. Lets explain how stow works. Picom expects its config file in ~/.config/picom/picom.conf, so, inside of the new home_stow directory, we recreate that folder structure, but using the program name (picom) instead of the tilde (~), which usually refers to the home folder. Lets put all of this together in the terminal. $ mkdir dotfiles && cd dotfiles # mkdir only if you didn't clone it $ touch README.md other_file.txt # optional $ mkdir -p ~/dotfiles/stow_home/picom/.config/picom/ $ mv ~/.config/picom/ ~/dotfiles/stow_home/picom/.config/ Once you do that, your picom folder is no longer in the .config directory, but inside of dotfiles/home_stow, following the same folder structure, as if home_stow was the /home directory, followed by the user picom and the path to the picom configuration files. Now we repeat this process with all of the files and directories we want to back up. Once done, the behavior of the programs you use, such as vim, should revert to their default configurations, since the user config files are no longer there. So, now its time to fix that! Inside of stow_home, run the following command: $ stow -vt ~ * This will symlink everything inside of stow_home, targetting ~ as the starting point. The -v flag will let you know of everything being done, so you should see an output like this, depending on the programs you backed up: $ stow -vt ~ * LINK: .config/awesome => ../dotfiles/stow_home/awesome/.config/awesome LINK: .config/bat => ../dotfiles/stow_home/bat/.config/bat LINK: .config/dunst => ../dotfiles/stow_home/dunst/.config/dunst LINK: .config/nvim => ../dotfiles/stow_home/nvim/.config/nvim LINK: .config/picom => ../dotfiles/stow_home/picom/.config/picom LINK: .config/rofi => ../dotfiles/stow_home/rofi/.config/rofi LINK: .config/spectrwm => ../dotfiles/stow_home/spectrwm/.config/spectrwm File versioning with git If you are reading this guide, you probably know the necessary git commands to backup everything to the service you chose at the beginning of this tutorial. Generally, every time you do changes you only need to follow these three commands, inside of your dotfiles folder. $ git add * $ git commit -m "Added config files" $ git push Remember that the last command will not work if you don’t have an external repository. The manual of GNU Stow contains a lot more than what I mentioned here, like unlinking and other flags that can be used and might be useful for your use case. Finishing up Anyways, that’s all folks, you can check out my dotfiles if you want to see how stow looks once setup, I am quite happy with it, if I do say so myself. If you feel like a step is not clear enough, please let me know in the comments. Bonus script! So, if you read until the end of this tutorial. I actually did a pretty decent bash script to automate everything here. All you need to do is configure it to your liking, add it to your $PATH and give it execution permissions with chmod +x dotstow, running it like this: dotstow file_or_folder The script is as follows, it uses basic tools like cut and of course, stow. #!/usr/bin/bash # Dotstow - Backup your chosen dotfiles in one go using stow. # Run it outside of the folder/file you want to back up # $ dotstow file-or-program STOW_DIR=$HOME/dotfiles/stow_home DIR=$(pwd | cut -d '/' -f4-) NEW_DIR=$STOW_DIR/$1/$DIR mkdir -pv $NEW_DIR mv -v $1 $NEW_DIR cd $STOW_DIR stow -vt ~ $1 The program does not check if a folder already exists or anything like that. So feel free to leave any suggestions. Extra notes [IMPORTANT] You can just use dotfiles as is without a folder inside it, but if you want to be able to quickly deploy everything using *, you must make a folder where README and other files you don’t want to symlink won’t interfere . Other files, like .bashrc, are not in the .config folder, keep in mind that the path to use depends on where the program needs it to be. In this case, it would have to be placed in ~/dotfiles/stow_home/bash/.bashrc. You can also move specific files of a configuration folder. For example, tut, a mastodon client, saves the account data (passwords, etc) inside of another file in its configuration folder. if thats the case. You should move only the files you want, instead of the whole directory. stow should manage the rest. If you are unsure about the paths you created, you can run the -n flag to simulate the output and see exactly where each symlink would be placed. That way you dont end up symlinking in the wrong place and doing weird stuff to your filesystem. Sources: https://chrono.tilde.cafe/posts/backup-your-dotfiles-using-stow.html (Yes I wrote this whole thing myself, kinda) https://www.gnu.org/software/stow/ http://brandon.invergo.net/news/2012-05-26-using-gnu-stow-to-manage-your-dotfiles.html
-
Hi, I've taken the 'poor guy" approach and I've made a docker image to backup a remote MySQL/MariaDB server into a remote git repository (ie. GitLab, GitHub, etc). I'd like to listen to your opinion on this form of backup, potential security threats, optimization tips, etc And, its free and open source. I'm open to Pull/Merge requests: https://gitlab.com/franciscocb/mariadb-git-backup-docker
-
- programming
- development
-
(and 4 more)
Tagged with:
-
I'm new to coding and just installed node for vite. I don't know if I did it correctly or anything but still learning. Right now I'm having a problem where if I delete a project in my projects folder, the deleted files start showing in my source control for projects where vite is installed. I already have a Stackoverflow post about this and I really just need help getting this fixed. I would appreciate it if anyone can check out that post to get the full details, just need more eyes on it. If you have solutions be free to reply here or on Stackoverflow. Here's the link to the original post: https://stackoverflow.com/q/74077564/20247009
-
Hey all together, So I have this weird Error going on inside my Visual Studio right now. Me and my coworkers decided to set up a onPrem Gitea for our company where we push our source code onto for better source control. This worked totally fine but then at some random point in time, my VS crashed and ever since them in not able to push my locally created commit-branch to the remote repository. The project template is an Blazor Server App running with ASP.NET Core 6. This problem only occured on my Notebook / in my VS, every other installation we have running on the machines of my coworkers are fine and still able to push and fetch to and from our remote repo. The errormessage my Output prompt of VS is giving me says the following: Error encountered while pushing branch to the remote repository: Git failed with a fatal error. Git failed with a fatal error. Custom certificate bundle not found at path: C:/Program Files/Git/mingw64/ssl/certs/ca-bundle.crt Custom certificate bundle not found at path: C:/Program Files/Git/mingw64/ssl/certs/ca-bundle.crt Custom certificate bundle not found at path: C:/Program Files/Git/mingw64/ssl/certs/ca-bundle.crt cannot spawn askpass: No such file or directory could not read Username for 'http://IP.Adress.Of.Our.Server': terminal prompts disabled Failed to push the branch to the remote repository. See the Output window for more details. Im running the following os/versions: Windows 11 Visual Studio 2022 (v17.1.1) Gitea-Version: 1.15.6 I'd be super happy if someone can help me with that. If you need addtional information, please let me know. Cheers Nightcore
-
Hi, noob question here I am trying to install bht on ubuntu When i do apt-get it says it "cant find the package" So I used wget to download the .git file I also installed "git" Question: How do I install the .git file? Cant figure out how to install it, and when i ask google it just tells me to install "git" but not how to run the file I also did the "git clone "url" " and that ran, but i still cant install it Please help, Thanks
-
I'm looking into building a dedicated server for my perforce source control system for the game I'm developing. My question is what are your recommendations for the sort of setup/configuration required for handling this sort task well. I would like redundancy and speed. Assume a 4k budget but would like a local and offsite setup. Thanks
-
I moved all my git repositories from desktop to my home directory. Then I tried to commit new files to GitHub. And I got this error. Is this because the location of the git folder changed? How do I make it work?
-
Another example why you should not use plaintext passwords in configuration files. "All evidence suggests that the hacker has scanned the entire internet for Git config files, extracted credentials, and then used these logins to access and ransom accounts at Git hosting services." So luckily no technical flaw seems to be used but simply the human flaw of bad security practices probably due to laziness. At least I personally would expect laziness to be the main underlying reason. On GitHub, GitLab and Bitbucket hundreds of git repositories have been tacking "hostage" by a hacker who deleted/corrupted/altered code and recent commit history of those repositories and left a ransom demand for "0.1 Bitcoin (~$570)". The ransom note reads: A search on GitHub done by ZDNet revealed "that at least 392 GitHub repositories have been ransomed, so far". The same search just now yields 384 results. The article on ZDNet also speaks of a way to recover: "members of the StackExchange Security forum have found that the hacker does not actually delete, but merele alters Git commit headers, meaning code commits can be recovered, in some cases." Also of course if you have a local clone of the repository which was up to date with the repository that has been compromised you can simply recover from there. And finally, while it might be not to difficult to restore your repository and close the security holes the ransom notes also threatens with making the code public, "private Git repositories were most likely compromised as well", which could still could be a mayor problem for those affected. Original article at ZDNet; https://www.zdnet.com/article/a-hacker-is-wiping-git-repositories-and-asking-for-a-ransom/ Some interesting links from the article: The GitHub search: https://github.com/search?o=desc&q=1ES14c7qLb5CYhLMUekctxLgc1FV2Ti9DA&s=indexed&type=Code Related StackExchange posting, partially quoted by ZDNet and contains instructions on how to recover: https://security.stackexchange.com/questions/209448/gitlab-account-hacked-and-repo-wiped
-
I'm looking into ways to improve workflow for multiple developers on a webserver. Git is currently the most promising method at the moment to help track changes to files etc. but I have a few questions.Firstly I am currently running an Ubuntu VPS with Apache 2 installed and I'm not sure what would be better; either renting a second cheap VPS and setting up a private git server on that or just storing all our files on GitHub. I get that using GitHub would be cheaper but I'd prefer to not have all of my work out on the public domain.Secondly if I went down the road of using git how would I be able to only allow users access to edit certain files at a time rather than have access to edit every file in my repository
-
Intro Social-Media is a web package software. What differs from any other Social Media Apps? Well it gives you control over the content. Hate YouTube giving you copyright strikes for no reason? Hate Facebook freebooting your YouTube videos? Hate having your Instagram hacked by click-bait lists? Well no worries! This application is human based. No automatic system to ruin your world. Built on PHP, Javascript/Jquery, and uses Bootstrap 3 and Bootswatch! Features The features list could be found here. I am very behind on the list. My bad. Pictures Home Page Profile Page Pokes Friending/ Following (They are Separate entity) UserCP / AdminCP Search Requirements Apache Server - Not a Local Server PHP 5.3+ MySql Database PHP PDO PHP MCRYPT Optional Requirements: Recatcha Uploadcare SMTP Server Installation There are currently, as the time of making this, are no videos of installing the software. Hopefully the installation on the wiki would help explain in details on what to do for the installation. Support Always feel free to create an issue on github if you have a problem. I'll try to respond to it asap. Otherwise I'll make something to help troubleshoot. Other I am running out of ideas on what to put on the site. Suggestions, Feedback, Contribution, Beta-Testers would be nice. This is completely free and I don't expect to get any donations or ad's on the site. Links https://social-media.root3287.site https://github.com/root3287/site
-
- social-media
- open-source
-
(and 4 more)
Tagged with:
-
Well, here I am asking the basic of questions about git. Normally, when I need to push my changes to github, I have to run git add --all git commit -m "Commit Comment" git push -u origin master Is there a way I can streamline this process? I have to do push to multiple repositories, at least 40 times a day per site, finding a easier way to do this would save me a hell of a lot of time. Cheers!
-
Original article via the Wall Street Journal: http://www.wsj.com/articles/if-your-teacher-sounds-like-a-robot-you-might-be-on-to-something-1462546621 Article on the topic by The Verge: http://www.theverge.com/2016/5/6/11612520/ta-powered-by-ibm-watson Quotes from The Verge article. So basically, as I see it, this could drastically change how some forums work where there is a lot of question-answer conversations going on. A bot that observes any community enough could scan for questions and *accurately* respond to them if they're common enough. I think this is pretty great. And pretty crazy. And pretty scary. We may be talking with bots right now and not fully realize it.