To start a process and get the output, it might be simple. (Do NOT COPY!!! Wrong code!!!) csharp var process = new Process { StartInfo = new ProcessStartInfo { FileName = bin, Arguments = arg, CreateNoWindow = true, WindowStyle = ProcessWindowStyle.Hidden, WorkingDirectory = path...
This article provides a detailed walkthrough of the complete process for using GPG to digitally sign commits in Git, with the goal of preventing others from forging commit history. It first explains the role of GPG signatures in verifying the authenticity and integrity of documents, and guides users on installing GPG tools based on their operating system. Next, it demonstrates generating a key pair via the command line, retrieving the long-form Key ID, and configuring Git global settings to enable automatic signing. Key steps include exporting the public key and adding it to a GitHub or GitLab account, so that the platform trusts the signature, thereby ensuring that only users holding the private key can generate recognized commits. The article also explores convenient solutions for synchronizing keys across devices, suggesting storing the private key file on cloud storage services such as Nextcloud, and importing and configuring it on new devices with a one-click script. It simultaneously emphasizes the importance of enabling two-factor authentication (2FA) and protecting the private key passphrase to avoid security risks. Finally, it points out that after configuration, the public key should be shared with trusted colleagues or friends, who should also trust the public key. This ensures that GPG signatures truly deliver their security protection value in team collaboration, preventing the signature mechanism from becoming a mere formality.
I have been using caddy as a reverse proxy. See more at Caddy. Step 1 Get a Ubuntu server You can buy a Ubuntu server from any provider you like. Don't forget to follow the best practices here. Step 2 Install GitLab Installing GitLab is super easy. Reference here bash sudo apt ge...
Before starting, you need your git client configured. var credentials = new VssBasicCredential(userName: string.Empty, password: this.config.Key); this.vssConnection = new VssConnection(new Uri(this.config.BaseUrl), credentials); if (!string.IsNullOrWhiteSpace(this.config.Key)) {...
Every time I start my computer, I gonna open bash and pull all my repositories. My folder structure looks like this: So how can I pull all my repos with only one command? First, create a new file: pull.sh under the folder WorkSpace Change the content to: find . maxdepth 2 mindept...