I have built my project with parcel and it gave me all my files in dist folder and I push it to a repo on GitHub. now I have dist folder and also src folder ( which was for develop phase). How can I deploy the page from dist folder using git ( on Github site I only know how to deploy from main branch not from another folder).
here is the repo address:
click to go to repo
Rename your dist folder as docs on your local repository, git add, commit and push. After that open your repo, go to Settings > Pages, leave the source dropdown on "Deploy from a branch", on branch dropdown select your main branch and select the docs folder, and you are ready to go.
Related
I want help with git action using yaml that can change yaml file in another folder and rename it and also commit files of this renamed files in its repository.
I have a folder A with this file in my local repository and I want when I push, commit, deploy this file in Folder A below, it will update folder B and rename it and lastly commit it to its repo.
"aaa.yaml"
"bbb.yaml"
"ccc.yaml"
Folder A has a path:\obi\chioma\zoo\sweet and its git hub.
This folder B will update and rename as:
"aaa091012.yaml"
"bbb091012.yaml"
"ccc091012.yaml"
Folder B Has a path in local repo a: \local\local\projects\api.github.io
Git repository: https://api.laugh/run/
For folder B I have a git hub repository for it and I want in git action of the first repo folder A to also push or commit folder b automatically from a push done at folder A.
I want to write a script for this using yaml in git action. Please can you help or any suggestion.
I need as a part of the build process to download contents from external github repository. I set up repository under "services" but I can not find a task which will download artifacts from that repo.
I use TFS 2017 on prem. My repository is already set to Git repo and I need to have one of build steps to pull data from yet another Git repo. How do i do that?
Build for the same github repo
If you want to download artifacts to your local path, you only need to use copy files task in your build definition.
Get source: select Github and use github token to authoize. If you want CI build, set in Triggers Tab.
Copy Files: set $(Build.SourcesDirectory) as Source Folder, specify the file you want to download in Contents, set a local path as Target Folder.
If you want to download/publish artifacts to VSTS server or share folder, you can use copy files task and publish build artifacts task in you build defnition.
Get source: select from github.
Copy Files: set $(Build.SourcesDirectory) as Source Folder, specify the file you want to download in Contents, set $(build.artifactstagingdirectory) as Target Folder.
Publish Build Artifacts: set $(build.artifactstagingdirectory) as Path to Publish, select the type you want to publish.
The way to connect github repo for TFS build:
In TFS build definition -> Repository Tab -> select External Git -> click Manage to add an External Git Service Endpoint -> input your github repo URL, username and password -> OK -> Then select the endpoint as connection.
Build for a git repo, and also need to download code from another github repo
You can use Command Line task to clone the github repo to your $(Build.SourcesDirectory) folder.
Settings of command Line task:
Tool: git
Arguments: clone https://github.com/username/repo
Now the code of the github repo is cloned in $(Build.SourcesDirectory)\repo.
Webstorm 10.0.4
I create new project:
I create new folder "myProject"
I try to clone git repo to that folder
At the moment when I do: menu > VCS > Checkout from Version Controle > Git
... I see:
BUT:
I don't want to clone project into subfolder. I want to clone it to "myProject" folder root!
How can I do that (via GUI)?
I have personal blog in github repo myname.github.io, i generates my site contents using Cabin site generator which generate build files in public folder. I wanted to serve the contents from public folder for Github pages. But it is always looking at the root folder.
Is there any option to tell Github to serve contents from public folder, not from root folder?
Remove the dist directory from the project’s .gitignore file (it’s ignored by default by Yeoman).
Make sure git knows about your subtree (the subfolder with your site).
git add dist && git commit -m "Initial dist subtree commit"
Use subtree push to send it to the gh-pages branch on GitHub.
git subtree push --prefix dist origin gh-pages
Source: https://gist.github.com/cobyism/4730490
Go to the settings of the project and set the gh-pages as the branch
for the website
I am using Eclipse Helios and EGit. I am new to Git. I have an existing Eclipse project for an Android app I would like to place in Git. Can someone please share some instructions on how to setup a Git repo on a shared folder, and place the existing project into this git repo using EGit? I have tried a variety of options with no success.
Thanks!
I had the same question (how to do it in Eclipse / eGit), and I just found the answer to the question stated in the title :
either go to Window > Show View > Other... then select Git > Git repositories or click the Git repositories icon in the set of icons in the right
expand the repository to see "Remotes", right click and Create Remote
choose the option : fetch will tell eclipse you're only allowed to read (which is the correct option if you don't want/have the right to push on that repo). then name that remote repository like you want (the first is usually named "origin", but you can have "prod", "test-server", ...)
click on change to specify the uri of the repository. You can paste on the first field the complete uri you would type after "git clone"; if in GitHub you first copy the uri then it might be automatically filled in
"Finish" then "Save and Push" or "Save and Fetch" according to what you chose in 3°
Also, for creating a new project in Eclipse from an existing git repository with eGit, all you have to do is to go in File > Import...and choosing Git/Projects from Git. Then follow the steps
You can do everything from the command line instead:
Do this in the root of the project:
git init
Do the same in the folder where you want your blessed or central repository:
git init --bare
In the local repository, add a readme file and commit it:
echo "testing" > readme
git add readme
git commit -m "initial commit"
Now link and push your changes to the central repository:
git remote add origin //server/share/repodir
git push -u origin master
Hope this gets you started.
You can use egit later if you like, but there is nothing wrong with using git separately.
See http://wiki.eclipse.org/EGit/User_Guide
If you only want one project in your git repo, Team>Share Project will turn that project into a git repo. You can then create another repo on your share, and push your project repo to the shared folder repo.
If you want a repo with multiple projects, your best bet is to create the project in an external location to the workspace. Then you can create the git repo in the folder above your project.