我在build_and_test.yml中的.github/workflows文件如下:
name: CI
on:
push:
branches:
- main
- name-of-my-branch
pull_request:
branches:
- main
jobs:
build:
# Code to build
但是,当我推送到除main分支之外的任何分支时,构建不会触发。知道为什么会这样吗?
我已经向git responsitory提交了几个变更集并向上推送。
我可以在remote responsitory中看到我的变更集,但在我克隆新的存储库之后。
我在几个文件上看不到最新的更改。我只有一个分支。
$ git branch
* master
$ git log
showing all the logs in the right way
$ git log <filename1> #look at certain file <p>
It does not show the newest change on that file
$ git log --f
我在Windows10本地克隆并修改了一个Github Jekyll主题,并将我的更改推送到名为"Timeline“的在线LogChimp页面存储库中。 我在我的终端中输入了bundle exec jekyll serve,我的网站在本地显示正确。在我将更改推送到我的在线存储库后,website does not display correctly和为空。 这是我的config.yml文件: title: Timeline – A Log of Life Events
url: http://www.joshuagalan.com/timeline
#logo: assets/img
我刚接触git和Github。我已经学习了许多术语(推送、拉入、提交、分支等),但我将主要使用常用术语来解释我最初的期望。
我假设这个过程是:
1.) Create a git repo out of my existing files.
2.) Copy those to my Github account to create a central "hub".
3.) Anyone who works on the project will check it out from Github, do work on their computers, then upload th
我正在尝试将我的一个项目推送到github,但我一直收到这个错误:
fatal: The current branch master has no upstream branch.
我以前从未见过这种情况。我重新初始化了我的git,重新添加了我的源文件,删除并重新创建了repo,并重新创建了我的SSH密钥。