One mistake is to have changed in the [master] branch instead of [mymain]. This can be fixed with this bash script:
# check the branch that you committed to by accident, in this case, is master
git checkout master
# reset the branch back one commit
git reset --soft HEAD^
# use stash to record the current state of the working directory
# checkout the branch it should be in, in this case, is mymain
git checkout mymain
# apply the stash
git stash apply
# commit the changes
git commit -am "main commit"
# then push the changes to our main branch
git push origin mymain
# checkout the original branch, in this case, is master
git checkout master
# the last step is to force push the commit deletion to the original branch.
git push --force origin master
Hope this help’s !!
Kick Start is a global online coding competition, consisting of three-hour rounds of a variety of algorithmic challenges designed by Google engineers. Participants can compete in one or all online rounds held throughout the year, and will have the opportunity to develop and grow their programming abilities while getting a… Continue Reading News: Google Kick Start 2021 is open.
In today’s tutorial, I will show you how to draw a sprite on the MonoGame window. Use the utility to open the Content.mgcb file.
[mythcat@desk MyGame001]$ cd Content/
[mythcat@desk Content]$ ls
bin Content.mgcb Fedora_logo.png obj
[mythcat@desk MyGame001]$ mgcb-editor
Add the sprite file using the Add Existing Item menu. I used the Fedora_logo.png file then build with the Build button. Add the following lines… Continue Reading MonoGame – Drawing a Sprite using Monogame.
Google comes with a new feature for users, see the message of the team development: We’re happy to announce that Search Console has an enhanced Association page within the settings menu. Association is a connection between a Search Console property, and some other entity or property in another Google service: for example,… Continue Reading News: Google Search Console comes with Associations page.
An important element of a game is changing the resolution and switching the game to fullscreen. However, I would not like to complicate the tutorial so I will show you simply how to do this in MonoGame. First, create a new C# file and name it ResolutionChanger.cs, and add this… Continue Reading MonoGame – Changing the resolution.
In the last tutorial, I showed you how to instantiate a project in MonoGame. In today’s tutorial, I will show you how to create a file with a class and implement it in the basic project. Create a file in the folder named MyGame001 and rename this file ProblemReport.cs. Add… Continue Reading MonoGame – Use a new class in the base example.
Today I started a new series of tutorials for those who follow this website related to C# programming and the .NET library called MonoGame. The official website comes with many tutorials and information and documentation. MonoGame is a simple and powerful .NET library for creating games for desktop PCs, video… Continue Reading MonoGame – Install and first test on Fedora 33 distro Linux.
This tutorial will briefly introduce you to the term and features of C-Sharp Generics. The word Generic means not specific. The C# programming language allows users to define classes, methods, static methods, interfaces, abstract classes, properties, events, delegates, and operators. The feature of C# defines classes and methods without defining… Continue Reading C# – First steps with C# and .NET – part 026 .