Git

211

Solutions

298

Contributors

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

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.
0
Become a CompTIA Certified Healthcare IT Tech
LVL 13
Become a CompTIA Certified Healthcare IT Tech

This course will help prep you to earn the CompTIA Healthcare IT Technician certification showing that you have the knowledge and skills needed to succeed in installing, managing, and troubleshooting IT systems in medical and clinical settings.

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?
0
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?
0
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 https://github.com/our_respository.git

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.

Correct?
0
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?

Thanks!
0
Which command should I use to install git in my linux PC.

sudo apt install git

or


sudo apt-get install git

Is git a program?  What does it do?  Is it a version control client?  
Where in my file system will it get installed?
0
I use "Remote Desktop Connection" from my windows PC to connect to remote Linux Virtual Machine running Ubuntu 18.04.2 LTS.
I open terminal window and type following command to clone git repository:

git clone git://git.yoctoproject.org/poky_local_copy

The response is as follows:
git connection failed
I open Mozilla Firefox Web Browser, enter git.yoctoproject.org and connect.  Why Web Browser connects to this site but from terminal cannot connect to this site?
0
Generally when I using GIT, my bottom line is the "origin / master" branch. That's what I cloned to create my local master branch and everything that I do is going to be held up to the light of "origin / master" when it comes to what is going to be pushed to PROD.

Right.

Recently, our shop had to make some changes that resulted in "origin / master" no longer being the most accurate and reliable body of code. Instead, it was a different branch. This is temporary because of some updates that are happening, but in order to make sure that my box was up to date with the most accurate syntax, instead of wiping out all of the files on my local box and starting over, I simply did this:

PS C:\Users\bgust\documents\DevServer> git checkout --track origin/biq-php7-audit-merge

"biq-php7-audit-merge" is the code that represents all of the most recent fixes that I need to have on my local box.

Rather than simply checking out a branch, by adding "--track," I'm now telling GIT that "origin-master" is no longer the "newest and the best." So, when I do a "pull," for example, to make sure that my code is up to date, GIT will not be pulling from "origin / master," rather it will be pulling from "origin/biq-php7-audit-merge."

That's what makes "--track" significant.

Correct?
0
Hi,

I d like to see an example of a public Azure Devops Powershell project.
Specifically the Boards I d like to see how that is arranged.

That way I know howto start organizing my project into Azure Devops Boards (what kind of items are put in an epic, what in sprints, what with features or items that have no specific date of implementatie etc.

There is a lot on documentation but that doesn't tell anything of there isn t a good example.

Thanks!

Thanks,
J
0
Hi,

Why would I use Azure Devops repo versus Github repo (for an Open Source Project)?

J
0
Microsoft Azure 2017
LVL 13
Microsoft Azure 2017

Azure has a changed a lot since it was originally introduce by adding new services and features. Do you know everything you need to about Azure? This course will teach you about the Azure App Service, monitoring and application insights, DevOps, and Team Services.

I was installing Github Lab on my desktop but I forgot to check the command line option. How would I go back and fix it?
0
Hi Experts,
 I am very new in Azure. We are working on Proof of Concept project for Azure. We have created the Platform as per the attached Architecture diagram. Now we have to test this environment is working or not by deploying any application. We don't want to spend more time to build any application since we just have to test.

What is the best way to do it? Do i get any application form github? Also can you please help me with steps for this task?

Architecture-Diagram.pptx

I know it's a stupid question but i will need some guidance.
0
Hi,
There is a git tag name that i have for a repo. I want to name on which branch it was created.
how to do it ?

Thanks
0
I just wonder is there anyone have experience to use git system for network drives?

I have a team and we're working on a sharedrive on network but the files are ASCII files and each members made some modificiation on files and it's hard to track what's the changes and etc. is there any way to see History, Pull, Push and Branch options on files.

Any idea would be grateful.

Thank you.
0
Hi, We're going to start using GIT, and I'm sure it will be great, but what I'm wrestling with is the visual aspect. Every article I read tells how to use it, and I think I get that.

But what about SEEING the changes I'm making? Usually I take a web page, say https://seniormealplans.com/dev/special-diets.html

I want to make a change so I save it as a backup, then make the change and upload it, so I can SEE it.

What I don't know, with all GIT's wonderful aspects, is how I do that. How do I see the page, how do I visually make changes? Thanks.
0
I am using Visual Studio code on a mac. I accidentally named a file with a “\” in it. I have now renamed that to use “$”. Like the Ola scripts: sql_host$instance_name.sql. I am trying to push the changes to the Azure DevOps repo, but I keep getting an error that I have an inappropriate character in the file name. This is holding up all other changes from being committed to the repo. So now it shows 6 changes waiting to commit, but I know they are just held up by the single .sql file that was misnamed and now been renamed. How can I just wipe out all my history and start over?

error: remote unpack failed: error VS403655: The push was rejected because Updates-[server\INSTANCE1].sql contains '\', which isn't a valid file or directory character. 
To https://dev.azure.com/DBA-TEAM/DBA/_git/DBA-TEAM

Open in new window


I have since renamed this file to Updates-[server$INSTANCE1].sql but I am still getting the above error when trying to push.
0
Hello,
How to share a project link on github.
0
Hi,
I have performed mvn release:prepare release:perform.
And a tag got created. I am using git and phabricator
Now i had to make some minor changes to the code. But dont want to create another tag unnecessarily.
So can i make the earlier tag point to the new code ?
The tag is important because that is how the build system in our office works...
But each time i make some change for deployment i dont want to create a new tag. and somehow make the older tag point to new code

Please suggest how to do it. and any alternatives ?

Thanks
0
As will soon become clear, I'm not a master of Git or even Gitkraken. As such, I just have a hotfix, a master and a feature branch. I make changes in hotfix, commit, push, and merge into master (which I then also push). So far I've endeavored not to get more complicated than this.

Even my one feature branch is a bit cowardly, in that that I still keep my feature work separate (in separate files/directories) from my working files, and consistently merge master into the feature branch so I don't lose all the site's hotfixes – all so that my crucial site files are kept whole and untouched regardless of branch. I consider this an intermediate practice as I continue to maintain the site while getting my head around Git. Since now I'm having this bizarre issue, I can see why I hadn't taken that leap yet. Apparently I'm indeed not ready to power-use Git or Gitkraken.

This morning, I did some work on hotfix, and merged it into master. No issue. Then I tried to switch to the feature branch (which I hadn't been in for weeks as it has been all about hot fixes lately), and all hell broke loose. Gitkraken throws the error: "Checkout failed. Could not remove [swf file - one that was there long before my last commit] Operation not permitted." What? Web searches with these key phrases turned up literally nothing... making me the first person to have this happen, I guess.

Then!... immediately, still in hotfix and having done nothing further, suddenly there are 27 file changes staged …
0
Exploring SQL Server 2016: Fundamentals
LVL 13
Exploring SQL Server 2016: Fundamentals

Learn the fundamentals of Microsoft SQL Server, a relational database management system that stores and retrieves data when requested by other software applications.

Hi,
I made a git commit. pushed it.
Now i have 2 more files changed. But i dont want to make a new commit for them. I want to merge them into the last one.
How do i do that ?
Thanks
0
Hi,
I have noticed sometimes whenever i do a git pull.
The editor will open up for merging with the default message :
Merge branch 'branch-name' of 10.1.5.12:app-portal into 'branch_name'
And i unnecessarily end up creating a new commit.

I dont know why this is happening ?
Ideally when i do a git pull it should just pull out the changes and not merge something...
Moreover why this message is appearing in the commit ?

Thanks
0
What is GIT_WORK_TREE? Could it be writing over a file every time I push from my repo to my pro server?

Every time I do that, my robots.txt file gets written over. It get's written over with the contents of a file named robots.txt-live, which I have no idea why that even exists (Im new, taking over for a departed dev). I grepped the live server and found whats below... could this mean that whenever I push from my repo on GitHub, the contents of robots.txt at the destination are being replaced by the contents of robots.txt-live from the repo OR from the destination (that -live file lives there as well)?

./mysite.com.git/hooks/post-receive:8:cp $GIT_WORK_TREE/robots.txt-live $GIT_WORK_TREE/robots.txt
0
Hi,
I have made a local commit to the repo.
The remote branch is ahead by one commit. So I forgot to take the pull and commit my changes to local.
I did a git pull and git push
I saw the following 2 commits in the branch. The last one is weird.
whats the need for that to be created. how can i avoid that ?
So here my local branch was on 1f6a commit
and the origin was at 0ca commit

when i tried to push i got the error message :
On branch stage
Your branch and 'origin/stage' have diverged,
and have 1 and 2 different commits each, respectively.
  (use "git pull" to merge the remote branch into yours)

after performing git pull i did git commit
and the top two commits were produced. Ideally only one commit should have
produced that of Remove nanosecond message.
How to avoid this top commit.
commit treeOne way is to uncommit your latest change and then take a git pull
How to uncommit the lates change that is in local ?

This problem is mainly coming when i am committing something and the origin branch is
ahead of local branch.
The Merge branch 'stage' of 10.1.5.12:app-portal into stage commit
which was automatically created has this in it. It shows two parents !!
parent
Thanks
0
I need whatever is in master branch to now be in my test branch named RM.

I definitely do not want to merge RM to master... I need it to be the other way around.
0
Hi,

I want to put a project I am writing on GitHub for public viewiewing.
What I want to make sure is no private information is in there.
I know my code does not have any references in there.

So things I am concerned about are.

My microsoft account email address
My azure devops Repos path - e.g. https://dev.azure.com/Code/Project/_git/xxxx etc
+ anything else I am not aware of.

I am assuming I would need to remove a git subdirectory somewhere.

Anything else - any other hidden files etc?

My original code is in Azure Devop's at the moment.
I am happy and prefer if I can not to have all the history there.

Which is why I was thinking of manually uploading it all.

Any thoughts / ideas.

Thanks,

Ward
0

Git

211

Solutions

298

Contributors

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
Git
<
Monthly
>