var auth = Encoding.UTF8.GetBytes($"{username}:{password}");
var token = Convert.ToBase64String(auth);
httpClient.DefaultHeaders.Authorization = new AuthenticationHeaderValue("Basic", token);
Greetings # People. I'm a hobbyist C# and Arduino (C++) Programmer. So please forgive me for any mistakes as I'm not "pro".
I'm looking for a way to collaborate with someone else in a project I have, but I have almost no idea where to start. GitHub seems to be the most famous way; but that thing is so user unfriendly...
basically because of 3 reasons 1, it is easier than creating a local repo and then adding the remote 2, it is just good habit to always use source control (mostly git) for all code projects 3, it keeps the remote repository as source of truth rather than your local repository
@Wietlol The point of git is that there is no single source of truth except what you define for yourself. Usually that is the remote on github/gitlab/whatevs, but there's no technical difference between 1) cloning to your PC and 2) adding remote and pushing
Just to clarify my insight: Source of Truth (or SSOT) is the Basic Logic the Application Functionality and Code should correspond to and the developers should abide to to be compliant with the required logic.
generally we skip fetch because a pull does that too (iirc)
so, normally, you do 1, commit your changes 2a, pull updates from remote 2b, (when necessary) resolve merge conflicts 3, push the merged changes to the remote
git fetch syncs the structure between local and remote. git pull downloads only changes from your branch and modifies your local copy if there are any changes.
Welcome to ISSUE #56 of the Overflow! This newsletter is by developers, for developers, written and curated by the Stack Overflow team and Cassidy Williams at Netlify. This week, we say farewell to Winterbash 2020, look for evidence that a program is being emulated, and create a chess AI that matches the skill of a player instead of…