Git is a version control system for software development. It is a distributed revision control system with an emphasis on speed, data integrity, and support for distributed, non-linear workflows. Git was initially designed and developed for Linux kernel development. As with most other distributed version control systems, every Git working directory is a full-fledged repository with complete history and full version-tracking capabilities, independent of network access or a central server.

Share tech news, updates, or what's on your mind.

Sign up to Post

Please help me with GIT.

I have github and I share with a fellow dev.

We have a repository in GITHUB which we both are owners to.

I have an old copy of this repo on my local hardrive.

I want to delete this and do a fresh pull from GIT without affecting the repo or affecting him.

I am looking for the commands to do this.

Also he uses visual studio to do all his commits and pushes and then uses the UI in GITHUB to merge the feature branch to master.

How would I do that using GIT only.

I am trying to force myself to using GIT commands only and get away from learning every UI's way of doing it.

Hi Experts

Could you point if it's possible to clone a repository  (Bitbucket  on my case) from master with a named way ?

What I mean is something like:

git pull origin master  (name)

Or the name is only possible to link a name when commiting (f.e.).

Thanks in advance!
I've found a GitHub Javascript example that I'd like to work with.
It is called hextris, and is a tetris like thing with hexagons. The touch and mouse handling code spots are very simple to find.

Is it indistinguishable if I pull it in to my visual Studio code project using their importing system, or copy the files myself? Obviously their project importing is just quicker?
The project page is here
I think I'd like to set up the files myself, to better learn the IDE?

I'm unable to clone u-boot from my linux laptop?
I also cannot login into

Is there a problem with github?  Few weeks ago I was able to login to github and clone source code from there.
I was hoping to have some strategy for my GitHub profile. I am a 32 year old Computer Science student and I am interested in web development. My goal is to get hired.

Right now my GitHub profile has every Udemy course I have completed as a public repository. Should I make those repositories private and only have a few repositories of projects I have created?
Hi experts

Since I'm part of new team managing cloud projects (AWS)

As part of DevOps, would like to introduce few automation which will streamline CICD

My request is, could you please help me with some pointers, essential process, best practices, house keeping, monitoring automation (I know, its a wide topic) but even a link to a third-party would be very helpful.

Basically below are the areas would like to get some help.

1. github on commit deployment to DEV or QA?. (we already have basic branching and release strategy)
2. Housekeeping, deleting old branches
3. Automated git commit report (generate release note from git code commit).

Atlasian JIRA:
1. Automation around JIRA
2. Integration with github, confluence
3. Essential alerts and report.

1. On commit, reports etc.

please let me know, if you want me to create individual question for each topic

are there any good tutorials on using git on windows? I know one can use command line version or GUI .
do I need to set up a GitHub or some repository account first?
can i set up multiple repository accounts , and commit to different code bases from the same machine, say one is in gitlab another in GitHub ? how do i set that up and how I have read we have to create Ssh key, how does that work?
I am trying to send http requests to the API provided by test what I was doing, I used Git BASH, and the following command completed correctly (I have changed the key and some of the user / document information, but the syntax is exactly as I sent it):

curl -u "9Ca9C0972a4e1ae439Cee8e5d54CCa881031ba247e085807a847aa86Ca080d6a:" "" -F "title=rjr.docx" -F "subject=Rick's Test Document" -F "message=Please sign this contract" -F "signers[0][email_address]" -F "signers[0][name]=Rick Rudolph" -F "file[0]=@c:/docpath/rjr.docx" -F "test_mode=1"

I opened up a VBA module, and set a reference to the Microsoft XML 6.0 library. Then I tried the following:

Public Function TestAPI()

Dim StrAPI As String
Dim request As MSXML2.ServerXMLHTTP60
StrAPI = " -u '9Ca9C0972a4e1ae439Cee8e5d54CCa881031ba247e085807a847aa86Ca080d6a:' '' -F 'title=rjr.docx' -F 'subject=Rick's Test Document' -F 'message=Please sign this contract' -F 'signers[0][email_address]' -F 'signers[0][name]=Rick Rudolph' -F 'file[0]=@c:/docpath/rjr.docx' -F 'test_mode=1'"
Set request = New ServerXMLHTTP60
request.Open "Post", StrAPI, False
Debug.Print request.StatusText

End Function

This code created an error at :  request.Open "Post", StrAPI, False

The error was:
runtime error '-2147012890 (80072ee6)
System error: -2147012890

I'm ready to install git for my MacBook 10.14.6 and command line, for my Javascript game project's source code needs.
I downloaded an install from source forge and my OS claimed it was from an unidentified dev, thus invalid, or something like that.
What is the correct way to acquire the correct version of git? will my OS recognize it as legitimate?


Can anybody explain to me the difference between the Master and Origin/Master?

From what I understand the Master is the a local branch but if you do a pull request and all there is that not going into the Master?

Why is it necessary to approve the pull request and all on the Azure DevOps site using a browser? Why are not all the aspect contained and functional is Visual Studio 2019? Or is it?

Everything I have read or seen shows a browser for with Azure DEV ops and nothing explains the difference between the Master and Origin/Master. Which is use when? When I create a feature branch which Master do I create that off of?

Any info on this to help with clarity would be greatly appreciated.
error pushing app to heroku
git push heroku master
Enumerating objects: 954, done.
Counting objects: 100% (954/954), done.
Delta compression using up to 4 threads
Compressing objects: 100% (939/939), done.
Writing objects: 100% (954/954), 8.52 MiB | 543.00 KiB/s, done.
Total 954 (delta 122), reused 0 (delta 0)
remote: Compressing source files... done.
remote: Building source:
remote: -----> Python app detected
remote:  !     Requested runtime (python-3.5.1) is not available for this stack (heroku-18).
remote:  !     Aborting.  More info:
remote:  !     Push rejected, failed to compile Python app.
remote:  !     Push failed
remote: Verifying deploy...
remote: !       Push rejected to appname.
I need to install git 2.22.0 on Oracle Enterprise Linux 6 and can't find an install that works.  I've installed the epel repository, but no go.  Any help would be greatly appreciated.

Is it necessary to do a Git snapshot when we want to have a copy of our code base for our stable website? I had posted a question here about *how* best to create a Git snapshot, but I didnt ask *why*. I got to thinking after that... our web host has daily backups on the server of our entire site, and if anything goes wrong or we push some code from Github to our live site and it breaks something, couldnt we just have our web host restore all the files from the server backup to a date before we screwed things up? I know there would then be an issue of how to get our Github repo reverted back to that date and not lose all our subsequent changes, but maybe thats a better approach then trying to schedule snapshots of our stable site. I'm not sure, though, so Im looking for opinions here.

In Git, how do I:
-sync only certain files
-sync from different repos but in 1 folder, f.e.

Sync full folder 1 to repo1 but only subfolder 3 to repo2
-auto sync = autopull, is it only possible via scheduled task (Windows, Powershell)?

I have list of files on my local branch. I see one extra file.  I want to remove that file but not able to remove it

I have 4 files.

when I submit the review in rbt commons, I see Test1.js.

Tried to remove the file in GitHub ui interface, it does not let me remove

Used the below to checkout the file from master

Git checkout master Test1.js

i still see the file as one of the changed file in my local repo.

Need help removing it
I did a git fetch and was perusing the different branches and I went to checkout a branch and got this:

$ git checkout unitTest
error: cannot stat 'bin/': Permission denied
error: cannot stat '': Permission denied

I can't get to any other branch now and I don't know how to solve "cannot stat..."

Any ideas?
I've set up a git dynamic on my computer and I'm successfully interacting with my remote repository, but I was wondering...

If I wanted to confirm the URL of the repository that constitutes my "origin," how do I access that?

I tried "git config --global --list" and I got "unable to read config file."

How do I access that information?
I'm working with a co-worker who created a new branch on a project that we're both working on. I want to retrieve the code that he put on that branch and put it on my computer.

I'm going through what I can find online and the command would seem to be:

git fetch origin <branch name>

"<branch name> is the new branch that my coworker just created. So if the new branch he just created is "new-master," then all I need to do is:

git fetch origin new-master


It's not working. What am I missing?
Tell me if I'm explaining this correctly:

With Rebase, you have a file that's been altered directly on your "master" branch and that same file altered on another branch.

In a normal situation, two engineers might be working on the same file, but because they're not working directly on the "master" branch, even if you have conflicts, you're never going to encounter a "rebase" situation because that only pertains to that scenario where you've made changes to the "master" branch directly.

Provided there are not conflicts...

...and stop me if I'm wrong...

You could checkout your master branch and merge your changes from the other branch that has that file you just changed on master and things would work just fine. But your log would have two different line items because the system is going to document both sets of changes.

When you rebase, you're going to keep your log looking a little cleaner because it's simply going to acknowledge both sets of edits as one comprehensive change.

Is that corrrect?
Does a hyphen - matter in a folder name with Git? Git will not track any changes in a new folder we have made, even though it is not gitignored.
I have Git installed on my Windows 10 PC, and have a fairly basic understanding on how to use it.  However, when I attempted to publish a project the other day, I learned that it wasn't actually configured with my personal github account. It was instead configured with an account that I'd set up for one of my client's projects that I worked on a few years ago.  I know this not only because I remembered it, but because even though the project seemed to be have been successfully published to a repo, .. it never actually showed up in my account.  It only showed up in my account when I installed and used "Github Desktop" to publish (configured with my personal Github account credentials).  

How and where can I change the login credentials for the command line version of Git that I have installed?  Should I uninstall and re-install it?  Or is there an easier way?

On a related note .. when using the command line version of Git, how do I create a new repository or specify which repository I want to publish a project to?  

- Yvan
Hello Experts,
Through SourceTree, I have created a new GIT branch (let us call it temporary branch) from a Feature Branch. When I push something to the Feature Branch, I expect the temporary branch to track the Feature Branch and notify me that there are commits to be pulled. For some reason, I do not want to merge the temporary branch to the Feature Branch for some time, but like to have all the latest changes in the Feature branch pulled on-to temporary. Can  you please let me know if this is possible?
When we push all changes in master branch to our live website, we'd like to first take a "snapshot" of the live site code Git-wise so we can immediately revert if something goes wrong with the newest push. Whats the best way to do that?
I'm just making sure I've got this.

I don't use GIT very often, but I'm becoming more familiar with it.

My supervisor gave me this collection of commands:

git remote add origin

git push -u origin master

Tell me if I'm processing this correctly.

The first thing I'm going to do is login to the repository and I'm going to push what I have up to that branch,

After I've done that, I'm going to run the commands you see documented above and that will that.

Here are the commands:

cd /var/www/sites/developers

sudo chmod 775 -R bgust

sudo chown bgust:apache -R bgust

What am I doing? This was a list of commands executed by my coworker on my behalf. I recognize the first line in that I'm navigating to the "developers" directory.

sudo -> I'm utliizing the permissions associated with the "super user"

chmod / chown -> chmod and chown: "change mode" I'm changing the permissions an "chown" I'm changing the owner of a particular file or directory.

775 ->changing permissions to the owner and the group has full read / write permission.

But what does "-R" mean and what does "sudo chown bgust:apache -R bgust" mean?







Git is a version control system for software development. It is a distributed revision control system with an emphasis on speed, data integrity, and support for distributed, non-linear workflows. Git was initially designed and developed for Linux kernel development. As with most other distributed version control systems, every Git working directory is a full-fledged repository with complete history and full version-tracking capabilities, independent of network access or a central server.

Top Experts In