The Wiert Corner – irregular stream of stuff

Jeroen W. Pluimers on .NET, C#, Delphi, databases, and personal interests

  • My badges

  • Twitter Updates

  • My Flickr Stream

  • Pages

  • All categories

  • Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 4,262 other subscribers

Archive for April 30th, 2020

version control – How do I do an initial push to a remote repository with Git? – Stack Overflow

Posted by jpluimers on 2020/04/30

Based on [WayBack] version control – How do I do an initial push to a remote repository with Git? – Stack Overflow, this is what I do:

On the server

mkdir my_project.git
cd my_project.git
git --bare init

On the client

mkdir my_project
cd my_project
touch .gitignore
git init
git add . git
commit -m "Initial commit"
git remote add origin youruser@yourserver.com:/path/to/my_project.git
git push --set-upstream origin master

The last one is important, especially when you have multiple remotes.

Some servers allow you to skip the server part, as they run them automatically when pushing a new repository from the client.

This can be both an advantage and a disadvantage, for instance when you have typos when adding the remote.

–jeroen

Posted in Development, DVCS - Distributed Version Control, git, Software Development, Source Code Management | Leave a Comment »

The Invention of C++ – Nice bit of net lore

Posted by jpluimers on 2020/04/30

This is a nice joke: [WayBackThe Invention of C++ – Nice bit of net lore.

But the actual interview linked from the article is quite nice: [WayBack: The Real Stroustrup Interview]

By the name, I found the actual (hopefully still online when this gets out of the blog post queue) version at [WayBack] Stroustrup: Interviews under [WayBackstroustrup.com/ieee_interview.pdf

–jeroen

Via: [WayBack] The invention of C++ – Thomas Mueller (dummzeuch) – Google+

Posted in C, C++, Development, History, Software Development | Leave a Comment »

Joe Groff on Twitter: “As programmers, we write parsers all the time, but handling parser errors well tends to fall by the wayside. Here’s a quick blog post with some high-level observations on how to deal with parse errors well”

Posted by jpluimers on 2020/04/30

From a while ago, but I archived and collected the links. Be sure to read the comments in the Twitter threads.

–jeroen

Read the rest of this entry »

Posted in Design Patterns, Development, Software Development | Leave a Comment »