Skip to content

Latest commit

 

History

History
794 lines (591 loc) · 76.8 KB

git.md

File metadata and controls

794 lines (591 loc) · 76.8 KB

drawing

Git is a free and open source distributed version control system designed to handle everything from small to very large projects with speed and efficiency. - Git.scm.com

This article explains how to remove commits from a remote server in Git.

Until recently, almost every Git repository had a default branch named "master". But thankfully, as part of a movement to make the tech industry more inclusive and open, many software teams and open source projects are moving away from this unhealthy naming.

Hosting your own git server can be a fun learning experience used to understand the ins and outs of what goes into maintaining a codebase.

Hey everybody, this is the second post of the series on writing apps the Git way, where you just go take a cup of coffee and browse a Git repo to learn something new!

Code review is an integral part of any software development process. Here are a couple of rules for making great code review.

VS Code is Java-ready! Learn which extensions to use and how to configure it to start coding Java in a modern IDE.

Git is awesome if you know how to use it effectively. It's not just a backup system! Here are 10 best practices for version control with Git.

As a developer, we spend a lot of time working on the terminal and having personalized shell makes the working environment perfect, decreases frustration and also, increases productivity.

Git became already a standard in software engineering. There is no need to talk about the importance of the version control system nowadays. Even more, it is hard to imagine any kind of project without it. Constant changes to the code and continuous release cycles require that.

Yes, I know, we should all be terminal ninjas, memorising every git command yadda yadda. Or, like the caveman, we could put two sticks together (or in this case

Sometimes not only documentation but also the process of working on it may be critical. For example, in the case of projects, the lion’s share of the work is related to preparing documentation, and the wrong process may lead to errors and even loss of information, and, consequently, loss of time and benefits. But even if this topic is not central to your work, the right process can still improve the quality of the document and save you time.

GitHub is a well-known platform to share all kinds of technologies. The following article contains the 10 most widely used GitHub repositories.

Git branching naming conventions support the organic growth of a codebase in a systematic way. It helps in separating the work strategically.

Pushing to git when a file is too large (more than 100MB)

This story was originally published on my blog. If you're interested in this kind of content, feel free to check it out and subscribe :)

If you are using Git for a while you should have come across git log. As everyone knows, the git log is a simple command that helps us to view the changes or project history.

New to version control? Welcome! 👋 Understanding the lingo is very important. This can be overwhelming, but don’t worry, you’ll get there!

If you work in a team opening a Pull Request (or Merge Request) looks appropriate. It’s a common practice nowadays. However, have you ever thought about opening a Pull/Merge Request when working by yourself?

Few months back, I got a call from GitLab for a technical writer position. One of the question was about treating document as a code and what’s my view on that. The question was about treating document as part of a continuous integration and continuous deployment system. That question came at the time when I wasn’t treating doc as code and ironically, I now have a perspective.

Many software projects use secrets - usually, keys to external APIs or credentials to access an external resource such as a database. Your application needs these keys at runtime, so you need to be able to provide them when you deploy your application, or as a step in preparing your deployment environment.

“Pull requests let you tell others about changes you've pushed to a branch in a repository on GitHub. Once a pull request is opened, you can discuss and review the potential changes with collaborators...” - Github

Tags are a simple aspect of Git, they allow you to identify specific release versions of your code. You can think of a tag as a branch that doesn't change. Once it is created, it loses the ability to change the history of commits.

One of the first admonitions that a young Padawan gets together with access to git repositories is: “never use git push -f”. Since this is one of the hundreds of maxims that a novice software engineer needs to learn, no one takes the time to clarify why this should not be done. It’s like with babies and fire: “matches are not toys for children”, and that’s it. But we grow and develop both as people and as professionals, and one day the question “actually, why?” may arise.

Learn the mindset and process behind Trunk Based Development, and how to use git effectively with this pattern.

Git is an essential tool for version control, no matter what programming language or framework you use.

Authenticate your local machine git's to GitHub using SSH authentication. You do not need to type username and password anymore with this easy addition.

Repeating the same git commands over and over again can be such a waste of time!

I will explain GIT in five levels to different audiences.

GIT is great, it has made collaboration with other developers so easy, I can’t thank GIT enough. But GIT is vast and not every command remains on my mind. I find myself googling over and over again to get that right GIT command that can solve my problem.

Using Github Repositories can be a helpful tool to learn coding. Here are 15 Most Valuable GitHub Repos for Web Devs in 2021 and what you can learn from them.

A short article about how Git hash-based decentralized filesystem work

This story covers basic GitHub Jira Integration without requiring admin privileges to install apps on Jira.

An informal talk about some very useful git commands.

In this article, you'll learn how to utilize git reflog to re-organize and rewrite your Git commit history effectively and easily.

Automate staled branches management routine with Github Actions.

Problem

In this article, we’ll outline a widely accepted yet simple format for good commit messages.

In this article, I’d like to share my opinion on how to write good commit messages that would make your git log useful and improve your code review process.

How to work with git

Git worktree allows us to checkout many branches in a git repository. This lets us switch between different branches without losing our changes.

Developing software is more than just 'coding'. To grow as a programmer, you'll have to master other practices — here are 5 timeless tools and methods.

Originally published on melvinkoh.me

Interested in understanding the debate of Gitlab vs Github? Which one is better in 2020? Which one should you pick?

This Git command sheet is for non-beginners and is mainly dedicated to fixing Git mistakes.

Git commit messages are how we communicate to our future selves. In this post, I'll share the three most important rules when creating a commit.

Complete tutorial for Git & Github.

Git provides a powerful tool by letting us create branches

Gitignore lets you give instructions to Git that makes it ignore name patters that you designate, making it possible for you to control the files tracked by it.

In this post I will go through all the info you need to integrate Playwright in your CI without any problem.

Initially, we have seen DevOps, DevSecOps and many other ops but nowadays a new terminology “GitOps” is getting famous. Its fame has reached to this level that it was a trending topic at KubeCon.

Buck is a free, open-source and lightweight CLI tool used by developers to group multiple terminal commands into one.

Have you ever found a bug inducing line change in your code, and wondered who made the change to that line? Fortunately, git has a command for that

Code review is not a battlefield, the reviewer is not an opponent of the author. Both of them are aligned on the same goals.

I just saw that Heroku created the ability to git push heroku from main instead of master. Since I've been wanting to change my Git repos away from master anyway, I thought I'd check it out myself. Luckily, it was extremely simple.

When working with Git, the most useful command is "git help", which provides us with all of the assistance we require.

If you’re interested in writing about Git as in the process of learning, developing the code and the job interviews, feel free to use these writing prompts.

Usually, blank directories are not pushed when you commit and push new code to your repository. Let's look at how to push a blank directory to your git repo.

We love Git and everything as code, but how can we move beyond static definitions in GitOps and understand how our systems are really changing?

If you’re a Software developer, you cannot live without interacting with Git and it is never too late for anything!

Here are the top 5 Tips for securing GitOps environments.

Make it a habit to run git status before doing anything on a repository. I just learned this today and wanted to write it down to make it stick on my mind - or get familiar with it.

Hacktoberfest is round the corner and registrations are now open!

In this post I’ll take a look at the benefits of everything-as-code before considering some of the gaps that remain.

Sometimes, when we are making changes to a project in git, we realize we suddenly need to revert back to the last clean working directory version of our project

Now, you can easily update your commit messages by simply adding --amend to your git command.

Do you know when you install Git Bash on windows what exactly you are installing? Git or Bash? In this article, I will explain everything about them.

Git is meant to always give you back the data exactly as it was saved OR let you know the repository is corrupted. And it does an amazing job with it.

Currently We're creating a project that gives people an opportunity to wear personalized merch that reflects their interests, values and hobbies.

Our first launch is GitMerch.com (promo code = SALE20), where everyone can print a T-Shirt with his own contributions map on it. 

Are terminologies meaningful in software development? Yes, a lot! As developers, we’re continually writing code, and we do that by passing messages. Each message carries a lot of context and semantics. Therefore we’re always evolving how to do it in a better way.

Git commits are immutable—meaning you can create new ones, but what’s already inside will never be changed.

With the help of GitLive’s new pull reminders, you can now pull sooner, reduce the chances of conflicts, and merge faster!

These five JetBrains Git Plugins can drastically improve your productivity by adding new features and utilities to assist you with your coding projects

There are many Git tips and best practices available on the internet that can help you in your day to day activities.

Holochain is a git (free and open source distributed version control system) that does not require Proof of Work (PoW) and Proof of Stake (PoS). It is based on the DHT (distributed hash table) protocol utilized by BitTorrent for data lookup and file sharing.

The version control system is the foundation of the basics, without which it is impossible to conduct team product development in our time.

With Mercurial sunsetting support, it was time to move our repos. But how do you do this en masse?

Many Engineering Managers promote Pull Requests as part of the development workflow. It’s a consolidated practice that brings lots of benefits. It consists of comparing the changes of a branch with the repository’s base branch (conventionally called master).

Let’s imagine this scenario: You are working on a Laravel application, and you found a bug either in the framework itself or in one of the third party libraries you are using. You edit the code inside your project, or maybe you installed a fresh copy of Laravel and library that has the issue, and you edited the code there. You saved the changes, but when you went to your terminal to commit the changes, GIT just ignored what you did. You start wondering “What’s happening here?”.

Have you ever gone on a long holiday and wanted to check the updates your team has made since 2 weeks ago?

Have you ever faced the need to push a commit to a Git branch without changing any files in order to re-run your integration process?

Have you ever been working on a project in git and ran into an error telling you that you can't use git pull because you have local changes?

Why taking good notes is critical for a software developers?

Working on a data science project is almost always equivalent to an amazing clutter in the working directory. Data scientists would most likely have the following materials dumped in their project working directory:

If you want to keep your history clean and make your mistake disappear, let me show you 4 different ways to undo a commit.

GitOps makes me think of the old Hans Christian Andersen tale, about what’s real and what’s imagined.

Here are my most used Git commands

Sometimes in the middle of software development, you want to try some crazy idea out but don't want to mess up with current code. What should you do?

Learn the basics of Git and GitHub.

The right tools for remote developers can help engineers overcome most difficulties.

When you have multiple developers working on the same code, you may face a lot of challenges when merging. That's where branches come in.

Pre-commit is a simple yet powerful tool that can help you catch these issues before they make it into your codebase. It is a git hook script.

Every day we use the "git add" command a lot to add our changes to the index for new commits, but have you ever wondered how we can add all the changed files...

A brief introduction to Git and Github, two services that the vast majority of developers are intimately familiar with thanks to how incredibly useful they are.

Sapling is a new source control system developed by Meta. Working with stacked PRs in sapling is a pleasure. And it works well with GitHub's Review UI.

Git is the most popular source control system. In this post, I'll show some of these features that will make your work easier when using Git.

IPVFS: A light weight version control system for files on the Interplanetary File System.

Sometimes, we make do some unintentionally merge or rebase which we wish we could recover to the previous stage. But there is no commit for you to get back. That moment, you probably feel like the git log - time machine which you admire become not really helpful. But you should know that "git log" is not the only way to trace the history. There is another kind of git history which been keep tracked in your local and your local only, which is so-call reflog. This reflog stores the whole shebang of you local activities and you can undo almost everything with it.

There are some unofficial rules and guidelines developers should strive to follow as closely as possible when making an open source contribution.

The Git Bisect command uses a binary search algorithm to find which commit in your project’s history introduced a bug.

Improving our DevOps skill can help us become better developers, teammates and managers. Learn DevOps principles and a different perspective on git.

In this article, we will be discussing the staging area in Git and how it is a fundamental part of version control and can be used effectively in git.

A How-To Guide on Creating a Cloud Collaborative Workspace using Pylon and Tin, with the help of Git respositories. No installation needed!

The lack of folder tracking in git as a version control system is a pain in collaborative engineering. This post will unpack this.

Businesses need manageable and automatable approaches to CI/CD and DevOps to succeed in building and maintaining cloud-native applications, and devs love GitOps

How to create private homebrew taps

Your git fairy godmother will test and locate the bugs for you with a swish of her magic wand. All you need to know are the magic words: git bisect...

Sometimes, when working in a team or open source organization, you may misspell a message or make errors in your repository's commits

If you need a simple issue tracker for your app I'd recommend looking into using Github issues via the API, at least until it stops working for you!

I will describe how to make your life easier as a programmer with these useful tips on using Git. Before reading this, I recommend that you have a basic understand on how Git works.

Deepen your understanding of git internals and learn what to do when you wish you had the opportunity to go back in time and fix your mistakes,

Isolating features into different branches is a crucial practice for any serious developer. By separating each feature, bugfix or working experiment you will avoid a lot of problems and keep your development branches clean.

Still using Merge Commit for closing every Pull Request? You might miss out on some advantages of Rebase or Squash.

Discover how the binary search algorithm improves performance in Git and AWS Kinesis. Learn how to implement it in your own projects for better efficiency.

Improve your team's pull request management system to ship faster, more often.

How to grow an open source project on github

Here are some of the best practices that you can take up for your next open source contribution.

Building a minimalistic release pipeline with a Spring Boot app, Github Actions, and DigitalOcean.

Hacker Noon's annual Noonie awards help shine a spotlight on some of the greatest minds in tech. Head over to our awards page and nominate YOUR best people and products today at NOONIES.TECH.

Lots of websites have a termination clause, even Hackernoon, however, when it comes to the case of open source software this can be extremely concerning. The reason goes much deeper than you think.

The best way to become a better developer is to make contributions easy. What better way to do that then mastering git and Github

A scan of over 2.6 million domains revealed over 1000 publicly exposed git directories. Next to complete source code I found many credentials and api secrets.

No matter how experienced you are, Git will always find a way to surprise you. It is loaded with neat tricks that have the power to make your daily coding routi

When most people fantasize about the idea of starting a web development hobby (or career) they get eventually frustrated. Hard.

Rebases are a way of making your crude commit history into something you’ll want to share with the rest of your team.

Photo by Yancy Min on Unsplash

Have you ever faced a call to completely redesign your code in one of your pull requests? I have and then thought what are the ways to avoid this. Call it a pull request or merge request, basically, it is a set of changes you want to go ahead and merge to the main branch to deploy to production and complete your task. This post is going to highlight a semi silver bullet to get your pull requests merged faster :), carry on reading.

Amy, Matt, and Curt talk about migrating from a SQL database to a NoSQL database, what happens when shit hits the fan, and assessing your database usage.

Amy Tom chats with Mark Gamble, the Product & Solutions Marketing Director at Couchbase, about Edge Computing and tiered data systems.

Hey dapp developers! Today I am excited because I am posting the step-by-step process that allowed me to deploy my first Ethereum smart contract on the Ropsten testnet.

Using the same computer for both work-related and personal projects may cause you to write Git commit messages with your private email on your work projects or vice-versa. That is assuming that you configured Git with the --global flag, which applies the configs to every repo on your OS user account.

Git is a must for most of the developers and especially web developers. But at times we make silly mistakes cause we are human. And when you incorrectly named a branch and moved it to the remote server/repository. Then follow the below-mentioned steps before any other developer/team member gets a chance to hop onto you and show you crap for not adapting to naming conventions correctly -

Github is not only a place for storing our code and sharing libraries with other developers. Thanks to powerful Markdown syntax it’s possible to create sort of wiki pages. There are thousands of great resources in the Github - some of them are so big that recommending them is pointless.

As a developer, if you have discovered that you have just exposed a sensitive file or secrets to a public git repository, there are some very important steps to follow.

Hard links and symbolic links have been available since time immemorial, and we use them all the time without even thinking about it. In machine learning projects they can help us, when setting up new experiments, to rearrange data files quickly and efficiently in machine learning projects. However, with traditional links, we run the risk of polluting the data files with erroneous edits. In this blog post we’ll go over the details of using links, some cool new stuff in modern file systems (reflinks), and an example of how DVC (Data Version Control, https://dvc.org/) leverages this.

The architecture of the development workflow is designed based on the quality and quantity of releases. Here, quality refers to the state of bug-free or feature set in each release. And, quantity refers to the number of releases over the course of development. This architecture is not usually that complex; however, it can be a source of confusion.

Putting source control on the blockchain. Step-by-step guide for the very first git3 alpha release.

Application deployment comprises the steps, processes, and activities required to make an application or update available for its intended users. The manner in which you deploy an application matters a great deal as it impacts how quickly your product will respond to changes, and the quality of these changes. Today, most software developers deploy updates, patches, and new applications via a combination of manual, automated, and cloud-based processes, although, manual application deployment is being phased out.

How many times the below thing happens to you?

Data Version Control (DVC) is a data-focused version of Git. In fact, it’s almost exactly like Git in terms of features and workflows associated with it.

Becoming a Git power user is on the bucket list of every developer. With our 5 Git tips you will level up your workflow and get one step closer to Git mastery!

Git, an open source distributed version control system has been helping developers over a decade now. It is a great tool for tracking source code changes during software development. However, there are a lot of git commands, and this article lists the most important ones that will help your team get work done efficiently.

Git hooks are extremely useful in the journey to replace as much of the human factor in the process of secure development as possible.

Have you ever come across a situation where you want to rename a Git branch? If yes then this article will help you with that.

Imagine that you are working on a part of a project and it starts getting messy. There has been an urgent bug that needs your immediate attention. It is time to save your changes and switch branches. The problem is, you don’t want to do a commit of a half-done work. The solution is git stash.

It's October and we're calling all programmers, designers, content writers and open-source contributors to join Hacktoberfest 2020. This is a fantastic opportunity to contribute to open-source or try your hand at something new.

When I started programming, Code Review wasn’t part of my routine. First, like everyone, I learned how to print Hello World in the programming language that was studying. Then, what is an if, while, for, and other essential structures. Sometime later, I was coding.

We break down how to easily deploy your new website on Amazon Lightsail in less than 5 minutes. Get your code up and running and get back to doing what you want

GitHub Copilot is an AI pair programmer. GitHub Copilot is powered by a new AI system developed by OpenAI Codex and is coming soon to Visual Studio Code.

In the previous article, we talked about the basic concepts of Git every developer should know. In this article, I will be explaining to you what Git is, and the basic commands to get you up and running. Let’s get started!

A Distributed Version Control System that can be navigated via a block explorer.

Git is one of the most popular Version Control Systems out there, you can think of it as a way to take snapshots (commits in Git nomenclature) of your code in a specific state and time, just in case you mess things up later and want to go back to a stable version of your code. It’s also a great way to collaborate if you combine it with GitHub.

This article will explain how to import a project from Git to Azure Repos in 6 easy steps.

Have you ever thought that how these applications in our phone get updates? The answer is simple it is a Version Control System.

How to use Platypush and other open-source tools to build a notebook synchronized across multiple devices

To create a useful revision history, teams should first agree on a commit message convention to use, and this also applies to personal projects.

In this short article, we’ll be exploring some quick git commands that can help us in digging through our repositories’ history of commits.

To playing with git you have to do the following things step by step

Git toolbox provides multiple unique tools for fixing up mistakes during your development. Commands such as git reset, git checkout, and git revert allow you to undo erroneous changes in your repository.

Hi Everyone, Hope you all Programming geeks are doing well. In today's modern Software Industry, there are two types of engineers:

At Hackernoon, I had a task to fetch some files from GitHub API. Initially, I thought it'd be a simple GET request but soon I realized the work is a headache. The file I needed was quite large and hence the response was telling me to use something different than I already knew. I ended up spending two days on this issue.

I got 99 problems but my branching strategy ain't one.

Welcome back! We will learn how to automate the deployment of multiple sites to Firebase hosting using GitHub Action in this tutorial. GitHub provides a freemium (free for open source) CI/CD tool that is integrated with their repository.

Hello World!

As a beginner programmer, you can be surprised to see that people care so much about what goes into the git repository.

Did you ever have a friend you only ever saw in one place? Maybe it was a bar, your knitting club, or at the school gates. 

In the current era, most software development companies work in a collaborative environment where several developers contribute to the same source code. While some will be fixing bugs the others would be implementing new and different features. The problem raises, how to maintain different versions of the same code base?

When you are working on a huge project, you may discover bugs in the code that prevent you from proceeding any further in your development. How to fix them?

Are you worried about your security codes and keys? Worried about their safety? Are you looking for ways to protect your Git secrets? If so, then you are in the right place. And in this post, I will share everything you need to know about Git best practices to protect your Git secrets.

Many lessons from my time at university have stuck with me throughout the years. One of the most important was in regards to technical writing (thank you to my CS 787 professor).

Secrets in version control systems (VCS) like git is the current state of the world despite widely being recognized as a bad practice. Once source code enters a git repository, it can organically spread into multiple locations. This includes any secrets that may be included within. But why then are secrets in git repositories so common.

The Hacker Noon editor now supports embedding Github gists.

When a file is tracked, adding it to .gitignore will not cause it to go untracked. Learn how to untrack a file that you have recently added to .gitignore.

Every software has best practices. Git is not different. It has become the most used versioning system in the last years. Many companies adopted git because of its features. If you wonder why git is so powerful, here are some of the advantages over other versioning systems, like Subversion:

This article was made possible by Udemy.

What is a Git rebase and how do you use it? Rebasing is one of the two Git processes of integrating changes from one branch to another.

These are some of the most useful Git commands that helped me during my programming journey.

Full disclosure: I'm the CTO of https://rungutan.com - the first API Load Testing SaaS platform, 100% Serverless, API driven, finally available for SMBs, the company which has built this open-source software - Stackuchin.

In this post we learn about concept of Submodules in git by actually troubleshooting a case of embedding multiple git repositories

Git has many commands but you can be productive with just a few. I used a script to fetch my most git commands sorted by the number of their occurrences.

And slowly github became the new facebook for coders where instead of posting pictures and life events people post code for projects and your fellow developers comment, request features and fork the code to suit there needs.Brian Doll, GitHub’s vice president of strategy says “If you look at the top 100 sites, you’ve got a handful of social sites, thirty flavors of Google with national footprints, a lot of media outlets — and GitHub”

Many developers are familiar with the situation like “where did this code fragment come from and why is it needed?”. You have to spend time and deal with the details already considered by another colleague. How to make it take a less amount of time? To achieve this, pay attention to a process of writing descriptions for Pull Requests (known as “PRs”) and Merge Requests (known as “MRs”). This article will focus on the content of the PR description without any explanation of coding since each project has its own coding-related specifications and requirements.

A diff algorithm outputs the set of differences between two inputs. These algorithms are the basis of a number of commonly used developer tools. Yet understanding the inner workings of diff algorithms is rarely necessary to use said tools.

Github just released it’s own Command-Line Interface (CLI) so developers can now do everyday GitHub tasks from the terminal. Yay! This means no more squiggling around the UI. With this new CLI, you can now view, create, clone, or fork repositories, create, view, and edit gists, you can also work with pull requests and issues right from the terminal.

This is an open-source introduction to Git and GitHub guide that will help you learn the basics of version control and start using Git for your SysOps, DevOps,

How to install Node, Yarn, Git and VSCode on Linux, Mac and Windows, a simple and easy guide to follow.

And another showing a linear history of the same project that uses fast-forward merges as Adam recommends:

Git, debugging, testing, the terminal, Linux, the cloud, networking, patterns/antipatterns - what even is this mess? Don't worry we'll go through it from beginning to end (all the way, I promise) everything you need to know to collaborate proficiency with others.

How to use Platypush to set up self-hosted build and test pipelines for your Gitlab and Github projects.

Below is a list of every PR that was merged at Hacker Noon in 2019. In the coming weeks, expect to see regular product updates (with a bit more context 😉), but for now, please enjoy this dump of commit messages I put together in 15-20 minutes.

I’ve created this “BitBucket vs GitHub” content piece to help you make a better decision when picking between the two.